Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValidationException

The default validation error class, used when no custom validation error handler is set.

Hierarchy

  • Error
    • ValidationException

Index

Constructors

constructor

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

validationErrors

validationErrors: ValidationErrorMap

An object with key-value pairs where the keys represent a property name, and the values are an array of all validation error messages for that property.

Optional Static prepareStackTrace

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

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc