TopBlend: Here is the first difference. There are 20 differences. is old. is new.

java.rmi.activation
Class ActivationException


java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.rmi.activation.ActivationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnknownGroupException , UnknownObjectException

public class ActivationException
extends Exception

General exception used by the activation interfaces.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "detail exception" that may be provided at construction time and accessed via the public detail field is now known as the cause , and may be accessed via the Throwable.getCause() method, as well as the aforementioned "legacy field."

Invoking the method Throwable.initCause(Throwable) on an instance of ActivationException always throws IllegalStateException .

Since:
1.2
See Also:
Serialized Form

Field Summary
  Throwable detail
          The cause of the activation exception.           Nested Exception to hold wrapped remote exceptions.
 
Constructor Summary
ActivationException ()
          Constructs an ActivationException. ActivationException with no specified detail message.
ActivationException ( String
          Constructs an ActivationException with the specified detail message. message, s.
ActivationException ( String  s, Throwable
          Constructs an ActivationException with the specified detail message message, s, and cause. detail exception ex.
 
Method Summary
  Throwable getCause ()
          Returns the detail exception (the cause of this exception. ).
  String getMessage ()
          Returns the detail message, including the message from the cause, detail exception if any, of this exception. there is one.
 
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

detail


public Throwable detail
The cause of the activation exception. Nested Exception to hold wrapped remote exceptions.

This field predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.

Constructor Detail

ActivationException


public ActivationException()
Constructs an ActivationException. Constructs an ActivationException with no specified detail message.

Since:
1.2

ActivationException


public ActivationException(String s)
Constructs an ActivationException with the specified detail message. message, s.

Parameters:
s - the detail message
Since:
1.2

ActivationException


public ActivationException(String s,
                           Throwable cause)  ex) 
Constructs an ActivationException with the specified detail message and cause. This constructor sets the detail field to the specified Throwable. Constructs an ActivationException with detail message, s, and detail exception ex.

Parameters:
s - the detail message
cause - the cause ex - detail exception
Since:
1.2
Method Detail

getMessage


public String getMessage()
Returns the detail message, including the message from the cause, detail exception if any, of this exception. there is one.

Overrides:
getMessage in class Throwable
Returns:
the detail message the detail message, including detail exception message if any
Since:
1.2

getCause


public Throwable getCause()
Returns the cause of this exception. This method returns the value of the detail field. Returns the detail exception (the cause ).

Overrides:
getCause in class Throwable
Returns:
the cause, detail exception, which may be null .
Since:
1.4