@thalorlabs/errors
Version:
Enhanced exception handling system for TypeScript applications with comprehensive error classes and debugging capabilities
16 lines (15 loc) • 671 B
TypeScript
import CustomError from './CustomError';
/**
* Error for unprocessable entity scenarios.
*
* Used when request syntax is correct but contains semantic errors that prevent processing.
* Provides clear 422 error responses with optional entity context.
*
* @example
* throw new UnprocessableEntityError('Invalid business logic', 'insufficient-funds', 'req-123');
*
* throw new UnprocessableEntityError('Entity validation failed', null, 'req-456', { field: 'amount', value: -100 });
*/
export declare class UnprocessableEntityError extends CustomError {
constructor(message?: string, error?: string | null, requestId?: string, context?: Record<string, any>);
}