UNPKG

@thalorlabs/errors

Version:

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

16 lines (15 loc) 639 B
import CustomError from './CustomError'; /** * Error for service unavailable scenarios. * * Used when services are temporarily unavailable due to maintenance or overload. * Provides clear 503 error responses with optional service context. * * @example * throw new ServiceUnavailableError('Service under maintenance', 'maintenance-mode', 'req-123'); * * throw new ServiceUnavailableError('Service overloaded', null, 'req-456', { retryAfter: 300 }); */ export declare class ServiceUnavailableError extends CustomError { constructor(message?: string, error?: string | null, requestId?: string, context?: Record<string, any>); }