@exellix/error-intel
v1.0.2
Published
Classify job and graph-run errors (including nested JSON metadata), decide retryability, and produce operator-friendly display copy.
Downloads
626
Maintainers
Readme
@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-intelUsage
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.
