anux-common
Version:
[](https://travis-ci.com/Anupheaus/anux-common) [](https://www.codacy.com/app/Anuphea
24 lines (23 loc) • 587 B
TypeScript
interface IConfig {
name?: string;
message: string;
code?: number;
info?: object;
internalError?: Error;
}
export declare class BaseError extends Error {
protected constructor(config: IConfig, self: Function);
name: string;
code: number;
info: object | undefined;
internalError: Error | undefined;
protected toJSON(): {
name: string;
message: string;
code: number;
info: string | undefined;
internalError: Error | undefined;
stack: string | undefined;
};
}
export {};