import { CallerModule } from "./http/util"; export interface IError { id?: string; message?: string; detail?: string; } export default class APIError extends Error { httpStatus: number; errors?: IError | IError[]; date: Date; callerModule: CallerModule; constructor(cm: CallerModule, httpStatus: number, response: string, ...params: any); static mapErrorMessage(err: APIError | Error): string; getError(): IError; }