Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValidationError

An Error class that will be thrown when a CloudEvent cannot be properly validated against a specification.

Hierarchy

  • TypeError
    • ValidationError

Index

Constructors

  • new ValidationError(message: string, errors?: null | string[] | ErrorObject<string, Record<string, any>, unknown>[]): ValidationError

Properties

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

Type declaration

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc