|
Your HMSException is not a checked exception on Method.invoke so you will be unable to catch it.
If the invoking method (fun1) throws an exception, invoke with catch this and will in turn throw a InvocationTargetException with your HMSException as the cause.
Hope that helps?
|