@enspirit/emb
Version:
A replacement for our Makefile-for-monorepos
85 lines (84 loc) • 2.72 kB
TypeScript
export declare class EMBError extends Error {
code: string;
message: string;
constructor(code: string, message: string);
toCliError(suggestions: string[], ref?: string): CliError;
}
export declare class CliError extends EMBError {
/**
* a unique error code for this error class
*/
code: string;
/**
* message to display related to the error
*/
message: string;
/**
* a suggestion that may be useful or provide additional context
*/
suggestions?: string[] | undefined;
/**
* a url to find out more information related to this error
* or fixing the error
*/
ref?: string | undefined;
constructor(
/**
* a unique error code for this error class
*/
code: string,
/**
* message to display related to the error
*/
message: string,
/**
* a suggestion that may be useful or provide additional context
*/
suggestions?: string[] | undefined,
/**
* a url to find out more information related to this error
* or fixing the error
*/
ref?: string | undefined);
}
export declare class AmbiguousReferenceError extends EMBError {
ref: string;
matches: string[];
constructor(msg: string, ref: string, matches: string[]);
}
export declare class UnkownReferenceError extends EMBError {
ref: string;
constructor(msg: string, ref: string);
}
export declare class ItemCollisionsError extends EMBError {
collisions: Array<string>;
constructor(msg: string, collisions: Array<string>);
}
export declare class CircularDependencyError extends EMBError {
readonly deps: Array<Array<string>>;
constructor(msg: string, deps: Array<Array<string>>);
}
export declare class ShellExitError extends EMBError {
service: string;
exitCode: number;
signal?: (NodeJS.Signals | null) | undefined;
constructor(msg: string, service: string, exitCode: number, signal?: (NodeJS.Signals | null) | undefined);
}
export declare class NoContainerFoundError extends EMBError {
component: string;
constructor(msg: string, component: string);
}
export declare class MultipleContainersFoundError extends EMBError {
component: string;
constructor(msg: string, component: string);
}
export declare class CommandExecError extends EMBError {
exitCode: number;
signal?: (NodeJS.Signals | null) | undefined;
constructor(msg: string, exitCode: number, signal?: (NodeJS.Signals | null) | undefined);
}
export declare class ComposeExecError extends EMBError {
exitCode: number;
signal?: (NodeJS.Signals | null) | undefined;
constructor(msg: string, exitCode: number, signal?: (NodeJS.Signals | null) | undefined);
}