class

ParameterTypeError(parameterName, expectedType, actualType, optionsopt)

Parameter type mismatch error

Constructor

class

new ParameterTypeError(parameterName, expectedType, actualType, optionsopt)

Parameters:
Name Type Attributes Description
parameterName string Name of the parameter
expectedType string Expected parameter type
actualType string Actual parameter type
options object <optional>
Additional options
Source:

Extends

Methods

function

toJSON() → {object}

Returns a detailed error object for logging/serialization
Overrides:
Source:
Returns:
Structured error information
Type object
function

toString() → {string}

Returns a user-friendly error description
Overrides:
Source:
Returns:
Formatted error string
Type string