An error indicating that input had an invalid shape.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • message: string

      The validation error message.

    • origin: string = ErrorOrigin.API

      The error origin, typically API (default) or SERVICE_EXTERNAL

    • path: readonly string[] = []

      The property path to the invalid field.

    Returns ValidationError

Properties

level: ErrorLevel = ErrorLevel.FATAL
origin: string = ErrorOrigin.INTERNAL
path: readonly string[] = []

The property path to the invalid field.

Accessors

  • get [toStringTag](): string
  • Returns string

  • get name(): string
  • Returns string

Methods