Files
playzer/apps/backend/src/modules/admin/shared/errors.ts
2026-06-26 14:05:37 -03:00

10 lines
228 B
TypeScript

export class AdminServiceError extends Error {
status: 400 | 403 | 404;
constructor(message: string, status: 400 | 403 | 404 = 400) {
super(message);
this.status = status;
this.name = 'AdminServiceError';
}
}