This is not about you actually getting an exception. But it's possible that your String is in the wrong format (which it is not). In that case you would get an exception.
So the compiler wants you to handle that exception. You either have to rethrow it or catch it. BUT: You won't actually get the exception with your code. It's just in case there ever is an exception.