mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
24 lines
670 B
TypeScript
24 lines
670 B
TypeScript
export type AmaProjectionFailureKind = "not-found" | "denied" | "rejected" | "invalid-response" | "unavailable";
|
|
|
|
export class AmaProjectionError extends Error {
|
|
constructor(
|
|
readonly kind: AmaProjectionFailureKind,
|
|
message: string,
|
|
) {
|
|
super(message);
|
|
this.name = "AmaProjectionError";
|
|
}
|
|
}
|
|
|
|
export type RealmrootDelegationFailureKind = "authority-required" | "denied" | "reauthenticate" | "invalid-response" | "unavailable";
|
|
|
|
export class RealmrootDelegationFailure extends Error {
|
|
constructor(
|
|
readonly kind: RealmrootDelegationFailureKind,
|
|
message: string,
|
|
) {
|
|
super(message);
|
|
this.name = "RealmrootDelegationFailure";
|
|
}
|
|
}
|