/** * MongoDB Atlas-specific error types. * * Re-exports the common HTTP errors from core and adds the Atlas-specific * classes (ported from distilled v0). Note the generated service module * additionally defines its own per-status matcher classes * (BadRequest/PaymentRequired/…) for the statuses each operation declares — * those share `_tag`s with the classes here, so `catchTag` works against * either. */ 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"; export type { DefaultErrors } from "@distilled.cloud/core/errors"; import * as Schema from "effect/Schema"; declare const PaymentRequired_base: Schema.Class, import("effect/Cause").YieldableError> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { BadRequestError: true; }; }); /** Payment Required — billing/quota limit (402). */ export declare class PaymentRequired extends PaymentRequired_base { } declare const UnknownMongodbAtlasError_base: Schema.Class; readonly reason: Schema.optional; readonly detail: Schema.optional; readonly body: Schema.Unknown; }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { ServerError: true; }; }); /** * Unknown MongoDB Atlas error — returned when nothing else matches the * failure. Carries the Atlas error envelope fields * (`{ error, errorCode, reason?, detail? }`) for later cataloging. */ export declare class UnknownMongodbAtlasError extends UnknownMongodbAtlasError_base { } declare const MongodbAtlasParseError_base: Schema.Class, import("effect/Cause").YieldableError> & (new (...args: any[]) => { "@distilled.cloud/error/categories": { ParseError: true; }; }); /** Schema parse error wrapper (kept for v0 surface parity). */ export declare class MongodbAtlasParseError extends MongodbAtlasParseError_base { } //# sourceMappingURL=errors.d.ts.map