Closed cmoon4799 closed 1 year ago
Can one of the admins verify this patch?
Thank you @cmoon4799 for the PR. I think @szarnekow's review probably covers things as for how the change is now. Do you want to provide a PR that better traverses the exceptions in the DEFAULT_EXCEPTION_HANDLER?
PS To accept PRs we need a signed ECA.
I am closing this now due to lack of activity and lack of ECA. @cmoon4799 feel free to reopen if you want to address any of the review comments.
RemoteEndpoint.java - as it stands, a
Throwable
, deriving from anInvocationTargetException
fromGenericEndpoint.recursiveFindRpcMethods
, passed intoRemoteEndpoint.exceptionHandler
will not be handled as anInvocationTargetException
. With this change, a customexceptionHandler
will at least be able to use theThrowable
message that was thrown from the invoked handler.For example, suppose I have a debug server with a RPC method
Foo
within which anException
is thrown with messagecustom string
. OnceFoo
is invoked and throws anException
,exceptionHandler
will obtain aRuntimeException
(fromrecursiveFindRpcMethods
) with little connection to the thrownException
- AFAIU, the custom message can only be obtained by parsing the stack trace which may be cumbersome. This change will allow a customexceptionHandler
to easily read fromThrowable.message
instead.