org.codehaus.groovy.runtime.typehandling
Class GroovyCastException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ClassCastException
                  extended by org.codehaus.groovy.runtime.typehandling.GroovyCastException
All Implemented Interfaces:
java.io.Serializable

public class GroovyCastException
extends java.lang.ClassCastException

See Also:
Serialized Form

Constructor Summary
GroovyCastException(java.lang.Object objectToCast, java.lang.Class classToCastTo)
           
GroovyCastException(java.lang.Object objectToCast, java.lang.Class classToCastTo, java.lang.Exception cause)
           
GroovyCastException(java.lang.String message)
           
 
Method Summary
 
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

GroovyCastException

public GroovyCastException(java.lang.Object objectToCast,
                           java.lang.Class classToCastTo,
                           java.lang.Exception cause)
Parameters:
objectToCast - object we tried to cast
classToCastTo - class we tried to cast to
cause - not kept but we pass on message from this Exception if any

GroovyCastException

public GroovyCastException(java.lang.Object objectToCast,
                           java.lang.Class classToCastTo)
Parameters:
objectToCast - object we tried to cast
classToCastTo - class we tried to cast to

GroovyCastException

public GroovyCastException(java.lang.String message)
Parameters:
message - custom Exception message