964569f
1
2
3
4
5
6
7
8
9
10
11
12
13
class AppError extends Error { constructor(message, statusCode = 500, details = undefined) { super(message); this.name = "AppError"; this.statusCode = statusCode; this.details = details; } } module.exports = { AppError, };