UNPKG

2 kBTypeScriptView Raw
1import { Exception } from '@poppinss/utils';
2export declare const E_PROMPT_CANCELLED: new (args?: any, options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
3/**
4 * Command is missing the static property command name
5 */
6export declare const E_MISSING_COMMAND_NAME: new (args: [command: string], options?: ErrorOptions) => Exception;
7/**
8 * Cannot find a command for the given name
9 */
10export declare const E_COMMAND_NOT_FOUND: {
11 new (args: [command: string]): {
12 commandName: string;
13 name: string;
14 help?: string;
15 code?: string;
16 status: number;
17 toString(): string;
18 readonly [Symbol.toStringTag]: string;
19 message: string;
20 stack?: string;
21 cause?: unknown;
22 };
23 status: number;
24 help?: string;
25 code?: string;
26 message?: string;
27 captureStackTrace(targetObject: object, constructorOpt?: Function): void;
28 prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
29 stackTraceLimit: number;
30};
31/**
32 * Missing a required flag when running the command
33 */
34export declare const E_MISSING_FLAG: new (args: [flag: string], options?: ErrorOptions) => Exception;
35/**
36 * Missing value for a flag that accepts values
37 */
38export declare const E_MISSING_FLAG_VALUE: new (args: [flag: string], options?: ErrorOptions) => Exception;
39/**
40 * Missing a required argument when running the command
41 */
42export declare const E_MISSING_ARG: new (args: [arg: string], options?: ErrorOptions) => Exception;
43/**
44 * Missing value for an argument
45 */
46export declare const E_MISSING_ARG_VALUE: new (args: [arg: string], options?: ErrorOptions) => Exception;
47/**
48 * An unknown flag was mentioned
49 */
50export declare const E_UNKNOWN_FLAG: new (args: [flag: string], options?: ErrorOptions) => Exception;
51/**
52 * Invalid value provided for the flag
53 */
54export declare const E_INVALID_FLAG: new (args: [flag: string, expectedDataType: string], options?: ErrorOptions) => Exception;