forked from geolba/tethys.backend
13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
class HTTPException extends Error {
|
|
public status: number;
|
|
public message: string;
|
|
|
|
constructor(status: number, message: string) {
|
|
super(message);
|
|
this.status = status;
|
|
this.message = message;
|
|
}
|
|
}
|
|
|
|
export default HTTPException;
|