redThread / server /src /utils /AppError.js
3v324v23's picture
Initial commit of RedThread project
0dd2082
raw
history blame contribute delete
260 Bytes
class AppError extends Error {
constructor(message, statusCode) {
super(message);
this.statusCode = statusCode;
this.isOperational = true;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = AppError;