feat(core): add entity errors (auth, common)

This commit is contained in:
2026-04-06 14:24:11 +02:00
parent 18bde6ca4c
commit bc78f2d366
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
export class AuthenticationError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
}
}
export class UnauthenticatedError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
}
}
export class UnauthorizedError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
}
}

View File

@@ -0,0 +1,11 @@
export class NotFoundError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
}
}
export class InputParseError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
}
}

View File

@@ -0,0 +1,6 @@
export {
AuthenticationError,
UnauthenticatedError,
UnauthorizedError,
} from "./auth.js";
export { NotFoundError, InputParseError } from "./common.js";

View File

@@ -0,0 +1,2 @@
export * from "./models/index.js";
export * from "./errors/index.js";