Skip to main content
Version: v1

ConstraintViolationFailure Interface

Error thrown when a constraint fails to apply

Signature

export interface ConstraintViolationFailure

Properties

Property Type Description
constraint ConstraintInternal Faulting Change
kind FailureKind.ConstraintViolation Failure kind (will always be FailureKind.ConstraintViolation)
violation ConstraintViolationResult The first violation the constraint encounters (there may be others).

Property Details

constraint

Faulting Change

Signature

readonly constraint: ConstraintInternal;

Type: ConstraintInternal

kind

Failure kind (will always be FailureKind.ConstraintViolation)

Signature

readonly kind: FailureKind.ConstraintViolation;

Type: FailureKind.ConstraintViolation

violation

The first violation the constraint encounters (there may be others).

Signature

readonly violation: ConstraintViolationResult;

Type: ConstraintViolationResult