UNPKG

@thalorlabs/errors

Version:

Enhanced exception handling system for TypeScript applications with comprehensive error classes and debugging capabilities

16 lines (15 loc) 638 B
import CustomError from './CustomError'; /** * Error for gateway timeout scenarios. * * Used when upstream services fail to respond within the timeout period. * Provides clear 504 error responses with optional timeout context. * * @example * throw new GatewayTimeoutError('Upstream service timeout', 'service-unavailable', 'req-123'); * * throw new GatewayTimeoutError('Gateway timeout', null, 'req-456', { timeoutMs: 5000, service: 'payment-api' }); */ export declare class GatewayTimeoutError extends CustomError { constructor(message?: string, error?: string | null, requestId?: string, context?: Record<string, any>); }