mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
export class RoleManagementError extends Error {
|
|
constructor(message: string, public readonly code: RoleManagementErrorCode) {
|
|
super(message);
|
|
this.name = "RoleManagementError";
|
|
}
|
|
}
|
|
|
|
export enum RoleManagementErrorCode {
|
|
UNAUTHORIZED = "UNAUTHORIZED",
|
|
ROLE_NOT_FOUND = "ROLE_NOT_FOUND",
|
|
INVALID_ROLE = "INVALID_ROLE",
|
|
}
|