@skbkontur/db-viewer-ui
Version:
Database Viewer with custom configuration
16 lines (15 loc) • 720 B
TypeScript
export interface ApiErrorInfo {
readonly message: string;
readonly statusCode: number;
readonly serverStackTrace: null | undefined | string;
readonly serverErrorType: null | undefined | string;
readonly innerErrors: null | undefined | any[];
}
export declare class ApiError extends Error implements ApiErrorInfo {
statusCode: number;
serverStackTrace: null | undefined | string;
serverErrorType: null | undefined | string;
innerErrors: null | undefined | any[];
responseAsText: string;
constructor(responseAsText: string, message: string, statusCode: number, type?: null | undefined | string, stackTrace?: null | undefined | string, innerErrors?: null | undefined | any[]);
}