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