Skip to main content
Version: v1

ConstraintViolationKind Enum

Enum of possible kinds of constraint violations that can be encountered

Signature

export enum ConstraintViolationKind

Flags

Flag Description
BadLabel The constraint failed because the trait label prescribed by the constraint does not match the actual trait label of the range being constrained
BadLength The constraint failed because the length prescribed by the constraint does not match the length of range being constrained
BadParent The constraint failed because the parent prescribed by the constraint does not match the actual parent of the range being constrained
BadRange The constraint failed because it applies to an invalid range

BadLabel

The constraint failed because the trait label prescribed by the constraint does not match the actual trait label of the range being constrained

Signature

BadLabel = "BadLabel"

BadLength

The constraint failed because the length prescribed by the constraint does not match the length of range being constrained

Signature

BadLength = "BadLength"

BadParent

The constraint failed because the parent prescribed by the constraint does not match the actual parent of the range being constrained

Signature

BadParent = "BadParent"

BadRange

The constraint failed because it applies to an invalid range

Signature

BadRange = "BadRange"