error handler change export
This commit is contained in:
parent
5bda122da9
commit
5a733b747f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user