SPDX-License-Identifier: Apache-2.0

Hierarchy (View Summary)

Constructors

Properties

Constructors

  • Create a custom error for data validation error scenario

    error metadata will include expected and found values.

    Parameters

    • message: string

      error message

    • expected: any

      expected value

    • found: any

      value found

    • Optionalcause: any = {}

      source error (if any)

    Returns DataValidationError

Properties

meta: any = {}

additional metadata (if any)