Licence
exellix-license
Version
1.0.2
Deps
0
Size
79 kB
Vulns
0
Weekly
0
@exellix/error-intel
Classify job and graph-run errors (including nested JSON metadata), decide retryability, and produce operator-friendly display copy for Exellix jobs surfaces.
Install
npm install @exellix/error-intel
Usage
import {
classifyError,
enrichJobRunError,
isNonRetryableJobRunError,
parseRunErrorForDisplay,
} from '@exellix/error-intel';
const classification = classifyError({ message: 'Graph execution failed', code: 'GRAPH_EXECUTION_FAILED' });
const enriched = enrichJobRunError({ message: '…', trace: '…' });
const display = parseRunErrorForDisplay(enriched);
Used by @exellix/jobs for queue/worker failure handling and by @exellix/jobs-ui via the jobs API error display payloads.