open static fun convertRmiAccessException(method: Method, ex: Throwable, message: String): Exception
Wrap the given arbitrary exception that happened during remote access in either a RemoteException or a Spring RemoteAccessException (if the method signature does not support RemoteException).
Only call this for remote access exceptions, not for exceptions thrown by the target service itself!
ex - the exception that happened, to be used as cause for the RemoteAccessException or RemoteException
message - the message for the RemoteAccessException respectively RemoteException
Return
the exception to be thrown to the caller
open static fun convertRmiAccessException(method: Method, ex: RemoteException, serviceName: String): Exception
Convert the given RemoteException that happened during remote access to Spring's RemoteAccessException if the method signature does not support RemoteException. Else, return the original RemoteException.
ex - the RemoteException that happened
serviceName - the name of the service (for debugging purposes)
Return
the exception to be thrown to the caller
open static fun convertRmiAccessException(method: Method, ex: RemoteException, isConnectFailure: Boolean, serviceName: String): Exception
Convert the given RemoteException that happened during remote access to Spring's RemoteAccessException if the method signature does not support RemoteException. Else, return the original RemoteException.
ex - the RemoteException that happened
isConnectFailure - whether the given exception should be considered a connect failure
serviceName - the name of the service (for debugging purposes)
Return
the exception to be thrown to the caller