mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
export type ApplicationErrorKind = "invalid-request" | "not-found" | "conflict" | "invariant-failed";
|
|
|
|
export class ApplicationError extends Error {
|
|
constructor(
|
|
readonly kind: ApplicationErrorKind,
|
|
message: string,
|
|
) {
|
|
super(message);
|
|
this.name = "ApplicationError";
|
|
}
|
|
}
|