3 ms·
At the call site you will get a compile error. And the signature of the method you call explicitly tells you what errors you need to handle. Most IDEs will con
by didibus 5y ago
At the call site you will get a compile error. And the signature of the method you call explicitly tells you what errors you need to handle.
Most IDEs will conveniently put a red squiggle line beneath the exact call site as well, and show you the compile error when you hover over it.
And if you choose to rethrow it, you will need to add to your method an explicit annotation.