SPDX-License-Identifier: Apache-2.0

Hierarchy (View Summary)

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

cause?: unknown
message: string
meta: any = {}

additional metadata (if any)

name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void