10 lines
367 B
TypeScript
10 lines
367 B
TypeScript
|
import { APIErrorOptions, APIErrorType } from '../../Types/Common';
|
||
|
export default class APIError extends Error implements APIErrorType {
|
||
|
status: number;
|
||
|
stack: string;
|
||
|
details: string;
|
||
|
type: string;
|
||
|
static getUserDataError(statusText: string, message: string): APIError;
|
||
|
constructor({ status, statusText, message, body }: APIErrorOptions);
|
||
|
}
|