Files
calendar/packages/lib/CalendarAppError.ts
MorganandGitHub 524c0d81a7 chore: rename DWD to DelegationCredential (#19744)
* Revert "Revert "chore: rename DWD to DelegationCredential (#19703)" (#19734)"

This reverts commit 340b5ab061.

* chore: fix schema and types for now

* fix: domainWideDelegationCredentialId error type
2025-03-05 10:42:20 -03:00

42 lines
1.3 KiB
TypeScript

export class CalendarAppError extends Error {
constructor(message: string) {
super(message);
this.name = "CalendarAppError";
}
}
export class CalendarAppDelegationCredentialError extends CalendarAppError {
constructor(message: string) {
super(message);
this.name = "CalendarAppDelegationCredentialError";
}
}
export class CalendarAppDelegationCredentialConfigurationError extends CalendarAppDelegationCredentialError {
constructor(message: string) {
super(message);
this.name = "CalendarAppDelegationCredentialConfigurationError";
}
}
export class CalendarAppDelegationCredentialInvalidGrantError extends CalendarAppDelegationCredentialError {
constructor(message: string) {
super(message);
this.name = "CalendarAppDelegationCredentialInvalidGrantError";
}
}
export class CalendarAppDelegationCredentialClientIdNotAuthorizedError extends CalendarAppDelegationCredentialConfigurationError {
constructor(message: string) {
super(message);
this.name = "CalendarAppDelegationCredentialClientIdNotAuthorizedError";
}
}
export class CalendarAppDelegationCredentialNotSetupError extends CalendarAppDelegationCredentialConfigurationError {
constructor(message: string) {
super(message);
this.name = "CalendarAppDelegationCredentialNotSetupError";
}
}