Hierarchy

Constructors

  • Parameters

    • properties: {
          message?: string;
          path?: string;
          reason?: any;
          type?: string;
          value?: any;
      }
      • Optional message?: string
      • Optional path?: string
      • Optional reason?: any
      • Optional type?: string
      • Optional value?: any

    Returns ValidatorError

Properties

cause?: unknown
kind: string
message: string
name: "ValidatorError"

The type of error. "MongooseError" for generic errors.

path: string
properties: {
    message: string;
    path?: string;
    reason?: any;
    type?: string;
    value?: any;
}

Type declaration

  • message: string
  • Optional path?: string
  • Optional reason?: any
  • Optional type?: string
  • Optional value?: any
reason?: MongooseError
stack?: string
value: any
Messages: any
messages: any
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc