mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
12 lines
439 B
TypeScript
12 lines
439 B
TypeScript
/**
|
|
* Principal/query or Principal/get failed. `type` is the JMAP method error
|
|
* (`forbidden` when the server does not let this account query the
|
|
* directory), or null when the request itself failed.
|
|
*/
|
|
export class PrincipalsRequestError extends Error {
|
|
constructor(readonly type: string | null, description?: string) {
|
|
super(description || type || 'Failed to fetch principals');
|
|
this.name = 'PrincipalsRequestError';
|
|
}
|
|
}
|