* Revert "Revert "chore: rename DWD to DelegationCredential (#19703)" (#19734)"
This reverts commit 340b5ab061.
* chore: fix schema and types for now
* fix: domainWideDelegationCredentialId error type
42 lines
1.3 KiB
TypeScript
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";
|
|
}
|
|
}
|