RemoteExceptionpublic class RemoteException extends IOException A RemoteException is the common superclass for a number of
communication-related exceptions that may occur during the execution of a
remote method call. Each method of a remote interface, an interface that
extends java.rmi.Remote , MUST list
RemoteException in its throws clause. |
Fields Summary |
---|
private static final long | serialVersionUIDIndicate compatibility with JDK 1.1.x version of class. | public Throwable | detailNested exception to hold wrapped remote exception. |
Constructors Summary |
---|
public RemoteException()Constructs a RemoteException with no specified
detail message.
| public RemoteException(String s)Constructs a RemoteException with the specified
detail message.
super(s);
| public RemoteException(String s, Throwable ex)Constructs a RemoteException with the specified
detail message and nested exception.
super(s);
detail = ex;
|
Methods Summary |
---|
public java.lang.String | getMessage()Returns the detail message, including the message from the nested
exception if there is one.
if (detail == null)
return super.getMessage();
else
return super.getMessage() +
"; nested exception is: \n\t" +
detail.toString();
|
|