magner
Version:
Universal admin panel magnetic to any backend
14 lines (13 loc) • 330 B
TypeScript
/**
* An error class for handling API errors. Keeps the response
* status and data for bug tracking.
*/
export declare class ApiError<DataType extends Record<any, any>> extends Error {
name: string;
status: number;
data: DataType;
constructor(params: {
status: number;
data: DataType;
});
}