-
-
Save Daltonic/bb37e1d4c5f84bc9c10fcbb8c3e19621 to your computer and use it in GitHub Desktop.
Sia VidTv HttpExceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// backend/src/utils/HttpExceptions.ts | |
export default class HttpException extends Error { | |
public status: number; | |
public message: string; | |
constructor(status: number, message: string) { | |
super(message); | |
this.status = status; | |
this.message = message; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment