2024-01-03 07:06:20 +00:00
|
|
|
const SalixError = require('./salixError');
|
|
|
|
module.exports = class ForbiddenError extends SalixError {
|
2023-04-06 12:59:25 +00:00
|
|
|
constructor(message, code, ...translateArgs) {
|
|
|
|
super(message);
|
2024-01-03 07:06:20 +00:00
|
|
|
this.name = ForbiddenError.name;
|
2023-04-06 12:59:25 +00:00
|
|
|
this.statusCode = 403;
|
|
|
|
this.code = code;
|
|
|
|
this.translateArgs = translateArgs;
|
|
|
|
}
|
|
|
|
};
|