If you check, `UnexpectedValueException` extends from `RuntimeException`, so changing it to `RuntimeException` is the right thing to do. It's more explicit, and still catches every possible error that can be thrown by the code.