Skip to content

Documentation / @einvoice-ts/validator / 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 '@einvoice-ts/validator';

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

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.