Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Callable

  • __call(message?: string): Error
  • Parameters

    • Optional message: string

    Returns Error

Index

Constructors

constructor

  • Validation Error. Thrown when the sequelize validation has failed. The error contains an errors property, which is an array with 1 or more ValidationErrorItems, one for each validation that failed.

    Parameters

    • message: string

      Error message

    • Optional errors: ValidationErrorItem[]

      Array of ValidationErrorItem objects describing the validation errors

    Returns ValidationError

Properties

errors

Array of ValidationErrorItem objects describing the validation errors

message

message: string

name

name: string

prototype

prototype: Error

Optional stack

stack: string

stackTraceLimit

stackTraceLimit: number

Methods

captureStackTrace

  • captureStackTrace(targetObject: Object, constructorOpt?: Function): void
  • Parameters

    • targetObject: Object
    • Optional constructorOpt: Function

    Returns void

get

  • Gets all validation error items for the path / field specified.

    Parameters

    • path: string

      The path to be checked for error items

    Returns ValidationErrorItem[]

Generated using TypeDoc