Skip to content

Documentation / @facturometro/einvoice / RULE_ERROR_ID

Variable: RULE_ERROR_ID ​

const RULE_ERROR_ID: "EINV-RULE-ERROR" = 'EINV-RULE-ERROR'

Defined in: packages/validator/src/engine/issue.ts:24

Id of the issue the engine reports when a rule throws instead of returning a verdict.

Example ​

ts
import { RULE_ERROR_ID } from '@facturometro/validator';

const crashed = result.issues.filter((issue) => issue.id === RULE_ERROR_ID);

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.