@beignet/core
Version:
Core framework primitives for Beignet
29 lines (27 loc) • 690 B
text/typescript
/**
* @beignet/core/errors
*
* Error catalog and error handling utilities for Beignet
*/
// Error catalog and AppError
export {
AppError,
type AppErrorCreator,
createAppError,
defineErrors,
type ErrorCatalog,
type ErrorDef,
type InferErrorDetails,
isAppError,
} from "./catalog.js";
// HTTP error helpers
export { type HttpErrorCatalog, httpErrors } from "./http.js";
// Error response utilities
export {
createErrorResponseBody,
type ErrorResponseBody,
isErrorResponseBody,
toErrorResponseBody,
} from "./response.js";
// Schema validation error (shared across client/core/server)
export { SchemaValidationError, type ValidationIssue } from "./validation.js";