com.thoughtworks.proxy.toys.delegate
Class DelegationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.thoughtworks.proxy.toys.delegate.DelegationException
All Implemented Interfaces:
Serializable

public class DelegationException
extends RuntimeException

Exception thrown if a delegation from the proxy to the delegated object fails.

Since:
0.1
Author:
Dan North
See Also:
Serialized Form

Constructor Summary
DelegationException(String message, Throwable cause, Object delegate)
          Construct a DelegationException.
 
Method Summary
 Throwable getCause()
          Retruns the causing Throwable.
 Object getDelegate()
          Returns the delegated object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegationException

public DelegationException(String message,
                           Throwable cause,
                           Object delegate)
Construct a DelegationException.

Parameters:
message - the meaningful message.
cause - a causing Throwable
delegate - the delegated object
Since:
0.1
Method Detail

getCause

public Throwable getCause()
Retruns the causing Throwable.

Returns:
the Throwable
Since:
0.1

getDelegate

public Object getDelegate()
Returns the delegated object.

Returns:
the delegated object
Since:
0.1