(
operation: string,
context: ErrorContext,
technicalDetails?: string
)
| 94 | |
| 95 | export class ProcessingError extends BaseError { |
| 96 | constructor( |
| 97 | operation: string, |
| 98 | context: ErrorContext, |
| 99 | technicalDetails?: string |
| 100 | ) { |
| 101 | super({ |
| 102 | code: ErrorCode.PROCESSING_FAILED, |
| 103 | message: `Processing failed during ${operation}`, |
| 104 | statusCode: 500, |
| 105 | context, |
| 106 | recovery: { |
| 107 | type: "retry", |
| 108 | description: |
| 109 | "Retry the operation or contact support if the issue persists", |
| 110 | autoRetry: false, |
| 111 | maxRetries: 1, |
| 112 | }, |
| 113 | userMessage: `Failed to process ${operation}. Please try again.`, |
| 114 | technicalDetails, |
| 115 | }); |
| 116 | } |
| 117 | } |
nothing calls this directly
no outgoing calls
no test coverage detected