FileDocCategorySizeDatePackage
RemoteException.javaAPI DocphoneME MR2 API (J2ME)3892Wed May 02 18:00:38 BST 2007java.rmi

RemoteException

public 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.
version
1.21, 02/21/02
since
JDK1.1

Fields Summary
private static final long
serialVersionUID
Indicate compatibility with JDK 1.1.x version of class.
public Throwable
detail
Nested exception to hold wrapped remote exception.
Constructors Summary
public RemoteException()
Constructs a RemoteException with no specified detail message.

since
JDK1.1


                     
      
public RemoteException(String s)
Constructs a RemoteException with the specified detail message.

param
s the detail message
since
JDK1.1

	super(s);
    
public RemoteException(String s, Throwable ex)
Constructs a RemoteException with the specified detail message and nested exception.

param
s the detail message
param
ex the nested exception
since
JDK1.1

	super(s);
	detail = ex;
    
Methods Summary
public java.lang.StringgetMessage()
Returns the detail message, including the message from the nested exception if there is one.

since
JDK1.1
return
the message saved when the exception was constructed

	if (detail == null)
	    return super.getMessage();
	else
	    return super.getMessage() +
		"; nested exception is: \n\t" +
		detail.toString();