FileDocCategorySizeDatePackage
RemoteException.javaAPI DocphoneME MR2 API (J2ME)2930Wed May 02 18:00:34 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.18, 10/27/00
since
JDK1.1

Fields Summary
private static final long
serialVersionUID
public Throwable
detail
Nested Exception to hold wrapped remote exception.

This field predates the general-purpose exception chaining facility.

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

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