games-express-api/utils/errorResponse.js

8 lines
172 B
JavaScript
Raw Normal View History

2024-09-12 15:48:27 -04:00
class ErrorResponse extends Error {
constructor(message, statusCode) {
super(message)
this.statusCode = statusCode
}
}
export default ErrorResponse