autumn-js
Version:
Autumn JS Library
17 lines (15 loc) • 334 B
TypeScript
interface ErrorResponse {
message: string;
code: string;
}
declare class AutumnError extends Error {
readonly message: string;
readonly code: string;
constructor(response: ErrorResponse);
toString(): string;
toJSON(): {
message: string;
code: string;
};
}
export { AutumnError as A };