@thalorlabs/errors
Version:
Enhanced exception handling system for TypeScript applications with comprehensive error classes and debugging capabilities
16 lines (15 loc) • 579 B
TypeScript
import CustomError from './CustomError';
/**
* Error for resource not found scenarios.
*
* Used when requested resources cannot be found in the system.
* Provides clear 404 error responses with optional resource context.
*
* @example
* throw new NotFoundError('User not found', 'user-123', 'req-123');
*
* throw new NotFoundError('Product not found', null, 'req-456', { category: 'electronics' });
*/
export declare class NotFoundError extends CustomError {
constructor(message?: string, error?: string | null, requestId?: string, context?: Record<string, any>);
}