source: trip-planner-front/node_modules/@angular-devkit/schematics/src/exception/exception.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.2 KB
Line 
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 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.UnimplementedException = exports.UnsuccessfulWorkflowExecution = exports.MergeConflictException = exports.InvalidUpdateRecordException = exports.ContentHasMutatedException = exports.FileAlreadyExistException = exports.FileDoesNotExistException = exports.SchematicsException = void 0;
11const core_1 = require("@angular-devkit/core");
12// Used by schematics to throw exceptions.
13class SchematicsException extends core_1.BaseException {
14}
15exports.SchematicsException = SchematicsException;
16// Exceptions
17class FileDoesNotExistException extends core_1.BaseException {
18 constructor(path) {
19 super(`Path "${path}" does not exist.`);
20 }
21}
22exports.FileDoesNotExistException = FileDoesNotExistException;
23class FileAlreadyExistException extends core_1.BaseException {
24 constructor(path) {
25 super(`Path "${path}" already exist.`);
26 }
27}
28exports.FileAlreadyExistException = FileAlreadyExistException;
29class 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}
34exports.ContentHasMutatedException = ContentHasMutatedException;
35class InvalidUpdateRecordException extends core_1.BaseException {
36 constructor() {
37 super(`Invalid record instance.`);
38 }
39}
40exports.InvalidUpdateRecordException = InvalidUpdateRecordException;
41class MergeConflictException extends core_1.BaseException {
42 constructor(path) {
43 super(`A merge conflicted on path "${path}".`);
44 }
45}
46exports.MergeConflictException = MergeConflictException;
47class UnsuccessfulWorkflowExecution extends core_1.BaseException {
48 constructor() {
49 super('Workflow did not execute successfully.');
50 }
51}
52exports.UnsuccessfulWorkflowExecution = UnsuccessfulWorkflowExecution;
53class UnimplementedException extends core_1.BaseException {
54 constructor() {
55 super('This function is unimplemented.');
56 }
57}
58exports.UnimplementedException = UnimplementedException;
Note: See TracBrowser for help on using the repository browser.