...
Here, the finally block completes abruptly since a return statement occurs within it. As a result, when the exception is thrown in method someException, it does not show up in the output. This is due to the abrupt termination of the finally block that suppresses any useful exception information from being displayed in the try block by overriding it with its own message. Note that even if the try block returns some value, the finally block is executed.
Note that MullPointerException NullPointerException is a RuntimeException, and thus does not need to occur in a throws declaration. The throwException() function never actually throws SomeException, although it claims to via its throws declaration.
...