Optional
metadata: Record<string, any>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
ExecutionViolation represents runtime failures requiring explicit intervention outside normal error flow. Unlike regular errors that convert to system error events, these violations demand special handling at the handler's .execute level.
Use sparingly - most runtime errors should flow through standard system error events. Reserve ExecutionViolation for cases requiring custom error handling logic that can't be managed through normal event patterns.