invalid Input
fun invalidInput(field: String, reason: String, cause: Throwable? = null): ValidationException.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