Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.rmi
Class RemoteException  view RemoteException download RemoteException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.rmi.RemoteException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AccessException, ConnectException, ConnectIOException, MarshalException, NoSuchObjectException, ServerError, ServerException, ServerRuntimeException, StubNotFoundException, UnexpectedException, UnknownHostException, UnmarshalException

public class RemoteException
extends java.io.IOException

The superclass of exceptions related to RMI (remote method invocation). Classes that implement java.rmi.Remote should list this exception in their throws clause.

Since:
1.1

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
 java.lang.Throwable detail
          The cause of this exception.
private static long serialVersionUID
          Compatible with JDK 1.2+.
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
RemoteException()
          Create an exception with no message, and cause initialized to null.
RemoteException(java.lang.String s)
          Create an exception with the given message, and cause initialized to null.
RemoteException(java.lang.String s, java.lang.Throwable e)
          Create an exception with the given message and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this exception.
 java.lang.String getMessage()
          This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ? "" : "; nested exception is:\n\t" + detail).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.2+.

See Also:
Constant Field Values

detail

public java.lang.Throwable detail
The cause of this exception. This pre-dates the exception chaining of Throwable; and although you can change this field, you are wiser to leave it alone.

Constructor Detail

RemoteException

public RemoteException()
Create an exception with no message, and cause initialized to null.


RemoteException

public RemoteException(java.lang.String s)
Create an exception with the given message, and cause initialized to null.


RemoteException

public RemoteException(java.lang.String s,
                       java.lang.Throwable e)
Create an exception with the given message and cause.

Method Detail

getMessage

public java.lang.String getMessage()
This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ? "" : "; nested exception is:\n\t" + detail).


getCause

public java.lang.Throwable getCause()
Returns the cause of this exception. Note that this may not be the original cause, thanks to the detail field being public and non-final (yuck). However, to avoid violating the contract of Throwable.getCause(), this returns null if detail == this, as no exception can be its own cause.

Since:
1.4