substitute UnrecognizedInputException for UnexpectedValueException