epic_explorer/server/exceptions/http.ts
2019-07-16 11:47:19 +05:30

12 lines
275 B
TypeScript

export class HttpException extends Error {
public status: number;
public message: any;
public error: any;
constructor(status: number, message: any, error?: any) {
super(message);
this.status = status;
this.message = message;
this.error = error;
}
}