com.thoughtworks.proxy.toys.delegate
Class DelegationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.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
 Object getDelegate()
          Returns the delegated object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

getDelegate

public Object getDelegate()
Returns the delegated object.

Returns:
the delegated object
Since:
0.1


Copyright © 2005-2010 Codehaus. All Rights Reserved.