/** * Exception utilities and error classes */ import { AppError, AuthenticationError, AuthorizationError, ConflictError, getErrorCode, getErrorMessage, getErrorStatusCode, InternalServerError, isOperationalError, NotFoundError, RateLimitError, ServiceUnavailableError, ValidationError } from '@g-1/util'; import { HTTPException } from 'hono/http-exception'; export { AppError, AuthenticationError, AuthorizationError, ConflictError, getErrorCode, getErrorMessage, getErrorStatusCode, InternalServerError, isOperationalError, NotFoundError, RateLimitError, ServiceUnavailableError, ValidationError, }; export declare function createBadRequest(message?: string): ValidationError; export declare function createUnauthorized(message?: string): AuthenticationError; export declare function createForbidden(message?: string): AuthorizationError; export declare function createNotFound(message?: string, resource?: string): NotFoundError; export declare function createConflict(message?: string): ConflictError; export declare function createTooManyRequests(message?: string, retryAfter?: number): RateLimitError; export declare function createInternalError(message?: string): InternalServerError; export declare function createServiceUnavailable(message?: string, retryAfter?: number): ServiceUnavailableError; export declare const BadRequestError: typeof ValidationError; export declare const UnauthorizedError: typeof AuthenticationError; export declare const ForbiddenError: typeof AuthorizationError; export declare const TimeoutError: typeof InternalServerError; export declare const NetworkError: typeof InternalServerError; export declare const DatabaseError: typeof InternalServerError; export declare const ExternalServiceError: typeof ServiceUnavailableError; export declare function TooManyRequests(message?: string): HTTPException; export declare function Forbidden(message?: string): HTTPException; export declare function Unauthorized(message?: string): HTTPException; export declare function NotFound(message?: string): HTTPException; export declare function BadRequest(message?: string): HTTPException; export declare function InternalError(message?: string): HTTPException; export declare function Conflict(message?: string): HTTPException; //# sourceMappingURL=exceptions.d.ts.map