Options
All
  • Public
  • Public/Protected
  • All
Menu
description

Error for validators

Hierarchy

  • Error
    • ValidationError

Index

Constructors

Properties

code: number
data: Record<string, unknown>
headers: Record<string, string>
message: string
name: string
stack?: string
statusCode: number
stackTraceLimit: number

Methods

  • getCode(): number
  • getData(): Record<string, unknown>
  • getHeaders(): Record<string, string>
  • getMessage(): string
  • getStatusCode(): number
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc