/** * Prisma-specific error types. * * Re-exports the common HTTP errors from core and adds the Prisma * Postgres-specific fallback/decode error types. The API's error envelope is * `{ error: { code, message, hint? } }` -- status-mapped failures surface as * the shared core classes (message only, like distilled v0); the envelope's * `code`/`hint` only surface on {@link UnknownPrismaError}. */ export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors"; import type { DefaultErrors as CoreDefaultErrors } from "@distilled.cloud/core/errors"; import * as Schema from "@distilled.cloud/core/schema-lite-typed"; declare const UnknownPrismaError_base: Schema.TaggedErrorClass<"UnknownPrismaError", { readonly status: import("effect/Schema").Number; readonly code: import("effect/Schema").optional; readonly message: import("effect/Schema").optional; readonly body: import("effect/Schema").Unknown; readonly hint: import("effect/Schema").optional; }>; /** * Unknown Prisma error -- returned when a failure matches no * per-operation error class and no HTTP status class. Carries the envelope's * `code`/`message`/`hint` and the raw body for later cataloging. */ export declare class UnknownPrismaError extends /*@__PURE__*/ UnknownPrismaError_base { } declare const PrismaParseError_base: Schema.TaggedErrorClass<"PrismaParseError", { readonly body: import("effect/Schema").Unknown; readonly cause: import("effect/Schema").Unknown; }> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { ParseError: true; }; }); /** Schema parse error wrapper (kept for v0 API compatibility). */ export declare class PrismaParseError extends /*@__PURE__*/ PrismaParseError_base { } /** * Errors any Prisma operation may surface in addition to the * status-matched API errors declared per endpoint. */ export type ClientErrors = UnknownPrismaError | PrismaParseError; /** * Default Prisma operation errors: the shared HTTP status errors * from core plus the client-level fallback/decode errors. */ export type DefaultErrors = CoreDefaultErrors | ClientErrors; //# sourceMappingURL=errors.d.ts.map