Class RemoteException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClosedException, DisconnectedException, NoSuchObjectException, UnimplementedException

public class RemoteException extends IOException
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 Details

    • RemoteException

      public RemoteException()
    • RemoteException

      public RemoteException(String message)
    • RemoteException

      public RemoteException(String message, Throwable cause)
    • RemoteException

      public RemoteException(Throwable cause)
  • Method Details

    • remoteAddress

      public SocketAddress remoteAddress()
      Returns the associated remote address, which can be null if unknown or not applicable.
    • remoteAddress

      public void remoteAddress(SocketAddress addr)
      Assign the associated remote address.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable