Unable to throw an exception from jar file

I have created a CustomKeyword plugin.
but if any of the keyword from plugin is throwing an exception from catch block, the created jar shows error for that method.

I am able to call that keyword in similar fashion, but the same wont be shown in the suggestion box while creating the scripts.

Please help.

Below is keyword snippet

Below is jar de-compiled snippet