Provides an error interface for handling when a function call has invalid parameters.

Implements

  • Error

Constructors

  • Parameters

    • paramIndex: string | number

      The index of the param that for this error (index of the param in MethodObject.params).

    • expectedSchema: JSONSchema

      The expected JSON Schema for the passed in value.

    • receievedParam: any

      The value of the param passed to the method call.

    • errors: ErrorObject[]

      The errors recieved by ajv

    Returns ParameterValidationError

Properties

expectedSchema: JSONSchema

The expected JSON Schema for the passed in value.

message: string
name: string = "ParameterValidationError"
paramIndex: string | number

The index of the param that for this error (index of the param in MethodObject.params).

receievedParam: any

The value of the param passed to the method call.