invalidInput

Creates an invalid input error.

Return

InvalidInput exception instance

Parameters

field

The name of the invalid field

reason

Description of why the input is invalid

cause

Optional underlying cause