1 | "use strict";
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.UnimplementedException = exports.UnsuccessfulWorkflowExecution = exports.MergeConflictException = exports.InvalidUpdateRecordException = exports.ContentHasMutatedException = exports.FileAlreadyExistException = exports.FileDoesNotExistException = exports.SchematicsException = void 0;
|
---|
11 | const core_1 = require("@angular-devkit/core");
|
---|
12 | // Used by schematics to throw exceptions.
|
---|
13 | class SchematicsException extends core_1.BaseException {
|
---|
14 | }
|
---|
15 | exports.SchematicsException = SchematicsException;
|
---|
16 | // Exceptions
|
---|
17 | class FileDoesNotExistException extends core_1.BaseException {
|
---|
18 | constructor(path) {
|
---|
19 | super(`Path "${path}" does not exist.`);
|
---|
20 | }
|
---|
21 | }
|
---|
22 | exports.FileDoesNotExistException = FileDoesNotExistException;
|
---|
23 | class FileAlreadyExistException extends core_1.BaseException {
|
---|
24 | constructor(path) {
|
---|
25 | super(`Path "${path}" already exist.`);
|
---|
26 | }
|
---|
27 | }
|
---|
28 | exports.FileAlreadyExistException = FileAlreadyExistException;
|
---|
29 | class ContentHasMutatedException extends core_1.BaseException {
|
---|
30 | constructor(path) {
|
---|
31 | super(`Content at path "${path}" has changed between the start and the end of an update.`);
|
---|
32 | }
|
---|
33 | }
|
---|
34 | exports.ContentHasMutatedException = ContentHasMutatedException;
|
---|
35 | class InvalidUpdateRecordException extends core_1.BaseException {
|
---|
36 | constructor() {
|
---|
37 | super(`Invalid record instance.`);
|
---|
38 | }
|
---|
39 | }
|
---|
40 | exports.InvalidUpdateRecordException = InvalidUpdateRecordException;
|
---|
41 | class MergeConflictException extends core_1.BaseException {
|
---|
42 | constructor(path) {
|
---|
43 | super(`A merge conflicted on path "${path}".`);
|
---|
44 | }
|
---|
45 | }
|
---|
46 | exports.MergeConflictException = MergeConflictException;
|
---|
47 | class UnsuccessfulWorkflowExecution extends core_1.BaseException {
|
---|
48 | constructor() {
|
---|
49 | super('Workflow did not execute successfully.');
|
---|
50 | }
|
---|
51 | }
|
---|
52 | exports.UnsuccessfulWorkflowExecution = UnsuccessfulWorkflowExecution;
|
---|
53 | class UnimplementedException extends core_1.BaseException {
|
---|
54 | constructor() {
|
---|
55 | super('This function is unimplemented.');
|
---|
56 | }
|
---|
57 | }
|
---|
58 | exports.UnimplementedException = UnimplementedException;
|
---|