games-express-api/utils/errorResponse.js

8 lines
172 B
JavaScript

class ErrorResponse extends Error {
constructor(message, statusCode) {
super(message)
this.statusCode = statusCode
}
}
export default ErrorResponse