@slsplus/ui
Version:
UI Tool for Serverless Plus CLI
21 lines (20 loc) • 482 B
TypeScript
export interface ApiErrorOptions {
type: string;
message: string;
stack?: string;
reqId?: string;
displayMsg?: string;
code?: string | number;
}
export interface ApiErrorInstance extends Error {
type: string;
message: string;
stack: string;
reqId: string;
displayMsg: string;
code: string | number;
}
declare class ApiError {
constructor({ type, message, stack, reqId, displayMsg, code }: ApiErrorOptions);
}
export { ApiError };