Files
sync-server-v2/source/errors/unauthorized-error.ts
T
2026-07-27 10:20:12 +00:00

11 lines
312 B
TypeScript

/** Authentication failure whose message is safe to return to clients. */
export class UnauthorizedError extends Error {
/**
* @param message - Client-safe unauthorized summary.
*/
constructor(message = 'Unauthorized') {
super(message);
this.name = 'UnauthorizedError';
}
}