Class RemoteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.cojen.dirmi.RemoteException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClosedException
,DisconnectedException
,NoSuchObjectException
,UnimplementedException
Defines the default exception for indicating a remote call failure.
Note: For compatibility with interfaces designed for use with Java RMI, remote methods
can declare throwing java.rmi.RemoteException
, but none of
its specialized subclasses will be used.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteException
(String message) RemoteException
(String message, Throwable cause) RemoteException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the associated remote address, which can be null if unknown or not applicable.void
remoteAddress
(SocketAddress addr) Assign the associated remote address.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RemoteException
public RemoteException() -
RemoteException
-
RemoteException
-
RemoteException
-
-
Method Details
-
remoteAddress
Returns the associated remote address, which can be null if unknown or not applicable. -
remoteAddress
Assign the associated remote address. -
getMessage
- Overrides:
getMessage
in classThrowable
-