error handler change export

This commit is contained in:
monoid 2021-01-01 03:26:25 +09:00
parent 5bda122da9
commit 5a733b747f

View File

@ -1,12 +1,12 @@
import {Context, Next} from 'koa'; import {Context, Next} from 'koa';
interface ErrorFormat { export interface ErrorFormat {
code: number, code: number,
message: string, message: string,
detail?: string detail?: string
} }
export class ClientRequestError implements Error{ class ClientRequestError implements Error{
name: string; name: string;
message: string; message: string;
stack?: string | undefined; stack?: string | undefined;