Class ErrorValidation

Generic error containing all parsing errors that occurred during execution.

Hierarchy

Constructors

Properties

cause: void

Causation of the exception Can be used to know what caused this exception

data: POJO

Arbitrary data

errors: ErrorParse[]
exitCode: 65 = sysexits.DATAERR
message: string
name: string
stack?: string
timestamp: Date

Timestamp when exception was constructed in milliseconds Guaranteed to be weakly monotonic

description: string = 'Input data failed validation'
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get description(): string
  • Returns string

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc