com.thoughtworks.proxy.toys.dispatch
Class DispatchingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.thoughtworks.proxy.toys.dispatch.DispatchingException
All Implemented Interfaces:
Serializable

public class DispatchingException
extends RuntimeException

An exception if a type cannot be dispatched.

Since:
0.2
Author:
Jörg Schaible
See Also:
Serialized Form

Constructor Summary
DispatchingException(String message, Class<?> type)
          Construct a DispatchingException with the offending type.
 
Method Summary
 Object getType()
          Returns the offending type.
 
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

DispatchingException

public DispatchingException(String message,
                            Class<?> type)
Construct a DispatchingException with the offending type.

Parameters:
message - the meaningful message
type - the type, that cannot be dispatched
Since:
0.2
Method Detail

getType

public Object getType()
Returns the offending type.

Returns:
the type
Since:
0.2


Copyright © 2005-2010 Codehaus. All Rights Reserved.