Class

InputValidationError

InputValidationError(paramName, expectedType, receivedType, details)

Input validation errors Thrown when function parameters don't meet expected type or value requirements

Constructor

# new InputValidationError(paramName, expectedType, receivedType, details)

Create an input validation error

Parameters:
Name Type Description
paramName string

Name of the invalid parameter

expectedType string

Expected type description

receivedType string

Actual type received

details string

Additional error details (optional)

View Source src/util/errors.js, line 66