mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
9 lines
180 B
TypeScript
9 lines
180 B
TypeScript
class ServerError extends Error {
|
|
constructor(message: string, public statusCode: number) {
|
|
super(message);
|
|
this.name = 'ServerError';
|
|
}
|
|
}
|
|
|
|
export default ServerError;
|