2021-05-10 18:47:26 +03:00
|
|
|
class ErrorResponse extends Error {
|
|
|
|
constructor(message, statusCode) {
|
|
|
|
super(message);
|
2021-11-05 18:39:42 +03:00
|
|
|
this.statusCode = statusCode;
|
2021-05-10 18:47:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-05 18:39:42 +03:00
|
|
|
module.exports = ErrorResponse;
|