@intuitionrobotics/thunderstorm
Version:
12 lines (11 loc) • 540 B
TypeScript
import { CustomException } from "@intuitionrobotics/ts-common";
import { ErrorBody, ErrorResponse } from "../index";
export declare class ApiException<E extends object | void = void> extends CustomException {
readonly responseBody: ErrorResponse<E>;
readonly responseCode: number;
private dispatchError;
readonly setErrorBody: (errorBody: ErrorBody<E>) => this;
setDispatchError(dispatchError: boolean): this;
getDispatchError(): boolean;
constructor(responseCode: number, debugMessage?: string, cause?: any);
}