mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-21 15:04:26 +00:00
15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
export class CliError extends Error {
|
|
constructor(
|
|
message: string,
|
|
public readonly code:
|
|
| "INVALID_INPUT"
|
|
| "DOWNLOAD_FAILED"
|
|
| "TRANSFORM_FAILED"
|
|
| "INSTALL_FAILED",
|
|
public readonly exitCode = 1
|
|
) {
|
|
super(message);
|
|
this.name = "CliError";
|
|
}
|
|
}
|