/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular_devkit/schematics/src/exception/exception.ts
51 строка
1 KB
Ash Ramirez
refactor(@angular/cli): update aio links -> adev links
06 июн 2024, 12:12
06 июн 2024, 12:12
434a374
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { BaseException } from '@angular-devkit/core'; // Used by schematics to throw exceptions. export class SchematicsException extends BaseException {} // Exceptions export class FileDoesNotExistException extends BaseException { constructor(path: string) { super(`Path "${path}" does not exist.`); } } export class FileAlreadyExistException extends BaseException { constructor(path: string) { super(`Path "${path}" already exist.`); } } export class ContentHasMutatedException extends BaseException { constructor(path: string) { super(`Content at path "${path}" has changed between the start and the end of an update.`); } } export class InvalidUpdateRecordException extends BaseException { constructor() { super(`Invalid record instance.`); } } export class MergeConflictException extends BaseException { constructor(path: string) { super(`A merge conflicted on path "${path}".`); } } export class UnsuccessfulWorkflowExecution extends BaseException { constructor() { super('Workflow did not execute successfully.'); } } export class UnimplementedException extends BaseException { constructor() { super('This function is unimplemented.'); } }