File size: 260 Bytes
0dd2082
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
class AppError extends Error {
    constructor(message, statusCode) {
        super(message);
        this.statusCode = statusCode;
        this.isOperational = true;
        Error.captureStackTrace(this, this.constructor);
    }
}

module.exports = AppError;