br.shob
Class InvocationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--br.shob.InvocationException
All Implemented Interfaces:
Serializable

public class InvocationException
extends Exception

An InvocationException occurs when a SharedReference instance tries to call a method and fails. The following exceptions can occur inside an InvocationException :

This class has been retrofitted to conform with the Java 1.4 Exception Chaining mechanism. This is expecially useful since an InvocationException cannot exist without a cause.

Version:
$Revision: 1.5 $
Author:
crolmos, dukejeffrie
See Also:
Serialized Form
Created:
November 11, 2001

Constructor Summary
InvocationException(String message, Throwable cause)
          Constructor for the InvocationException object
InvocationException(Throwable exception)
          Constructs an InvocationException wraping around the given exception
 
Method Summary
 Throwable getInner()
          Deprecated. Now the good method to get this exception's cause is through the getCause() method.
 String toString()
          Description of the Method
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvocationException

public InvocationException(Throwable exception)
Constructs an InvocationException wraping around the given exception

Parameters:
exception - the exception inside this InvocationException

InvocationException

public InvocationException(String message,
                           Throwable cause)
Constructor for the InvocationException object

Parameters:
message - the detail message
cause - the cause of this exception
Method Detail

getInner

public Throwable getInner()
Deprecated. Now the good method to get this exception's cause is through the getCause() method.

Returns the exception contained in this instance.

Returns:
The inner value
See Also:
Throwable.getCause()

toString

public String toString()
Description of the Method

Overrides:
toString in class Throwable
Returns:
Description of the Return Value