epic_explorer/server/exceptions/http.ts

12 lines
275 B
TypeScript
Raw Normal View History

2019-07-09 09:22:36 +00:00
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;
}
}