1 | import { Exception } from '@poppinss/utils';
|
2 | import { CommandConstructorContract } from '../Contracts';
|
3 |
|
4 |
|
5 |
|
6 | export declare class MissingArgumentException extends Exception {
|
7 | command: CommandConstructorContract;
|
8 | argumentName: string;
|
9 | |
10 |
|
11 |
|
12 | static invoke(name: string, command: CommandConstructorContract): MissingArgumentException;
|
13 | |
14 |
|
15 |
|
16 | handle(error: MissingArgumentException): void;
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 | export declare class InvalidFlagException extends Exception {
|
22 | command?: CommandConstructorContract;
|
23 | flagName: string;
|
24 | expectedType: string;
|
25 | |
26 |
|
27 |
|
28 | static invoke(prop: string, expected: string, command?: CommandConstructorContract): InvalidFlagException;
|
29 | |
30 |
|
31 |
|
32 | handle(error: InvalidFlagException): void;
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 | export declare class InvalidCommandException extends Exception {
|
38 | commandName: string;
|
39 | suggestions: string[];
|
40 | static invoke(commandName: string, suggestions: string[]): InvalidCommandException;
|
41 | |
42 |
|
43 |
|
44 | handle(error: InvalidCommandException): void;
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 | export declare class UnknownFlagException extends Exception {
|
50 | |
51 |
|
52 |
|
53 | static invoke(prop: string): UnknownFlagException;
|
54 | |
55 |
|
56 |
|
57 | handle(error: UnknownFlagException): void;
|
58 | }
|