Skip to content

ValidationError

Raised when input validation fails. Each ValidationError describes a single property that did not satisfy its constraint.

---
title: ValidationError
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ValidationError {
        +string message
        +string property
        +string constraint
    }
message: "Missing required input: firstName"
property: firstName
constraint: required
NameTypeDescription
messagestringHuman-readable error message
propertystringThe name of the property that failed validation
constraintstringThe constraint that was violated (e.g., ‘required’, ‘type’)