realm-object-server
Version:
19 lines (18 loc) • 403 B
TypeScript
export interface JSONErrorParams {
type?: string;
title?: string;
status?: number;
detail?: string;
instance?: string;
stack?: string;
}
export declare class JSONError extends Error {
type: string;
title: string;
status: number;
detail?: string;
instance?: string;
constructor(params?: JSONErrorParams);
toJSON(): any;
readonly message: string;
}