diff --git a/src/route/error_handler.ts b/src/route/error_handler.ts index fa07782..be43a02 100644 --- a/src/route/error_handler.ts +++ b/src/route/error_handler.ts @@ -1,12 +1,12 @@ import {Context, Next} from 'koa'; -interface ErrorFormat { +export interface ErrorFormat { code: number, message: string, detail?: string } -export class ClientRequestError implements Error{ +class ClientRequestError implements Error{ name: string; message: string; stack?: string | undefined;