Exception type fix, Error -> InvalidInputException