Optional
metadata: Record<string, any>Readonly
isAn additional flag to determine if it is an Arvo specific violation error
Readonly
metadataAdditional structured data about the violation
Readonly
nameThe error name, formatted as ViolationError
Optional
stackReadonly
typeThe specific type/category of the violation
Static
Optional
prepareOptional override for formatting stack traces
Static
stack
ContractViolation indicates a critical mismatch between services where event data violates the receiving handler's contract. This represents a serious system issue where services are out of sync with their contracts. Common causes include:
Requires explicit handling as it signals potential system-wide contract violations.