-
Notifications
You must be signed in to change notification settings - Fork 682
Expand file tree
/
Copy patherrors.ts
More file actions
31 lines (19 loc) · 865 Bytes
/
errors.ts
File metadata and controls
31 lines (19 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { BaseError } from '@ionic/cli-framework';
export class BaseException extends BaseError {
readonly name = 'Exception';
}
export class FatalException extends BaseException {
fatal = true;
constructor(public message = '', public exitCode = 1) {
super(message);
}
}
export class BuildCLIProgramNotFoundException extends BaseException {}
export class ServeCLIProgramNotFoundException extends BaseException {}
export class DirectoryNotAccessibleException extends FatalException {}
export class SessionException extends BaseException {}
export class RunnerException extends BaseException {}
export class RunnerNotFoundException extends RunnerException {}
export class IntegrationException extends BaseException {}
export class IntegrationNotFoundException extends IntegrationException {}
export class HookException extends BaseException {}