spring-framework / org.springframework.remoting.rmi / RmiClientInterceptorUtils / isConnectFailure

isConnectFailure

open static fun isConnectFailure(ex: RemoteException): Boolean

Determine whether the given RMI exception indicates a connect failure.

Treats RMI's ConnectException, ConnectIOException, UnknownHostException, NoSuchObjectException and StubNotFoundException as connect failure.

Parameters

ex - the RMI exception to check

Return
whether the exception should be treated as connect failure

See Also
java.rmi.ConnectExceptionjava.rmi.ConnectIOExceptionjava.rmi.UnknownHostExceptionjava.rmi.NoSuchObjectExceptionjava.rmi.StubNotFoundException