org.codehaus.groovy.runtime.typehandling
Class GroovyCastException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ClassCastException
org.codehaus.groovy.runtime.typehandling.GroovyCastException
- All Implemented Interfaces:
- Serializable
public class GroovyCastException
- extends ClassCastException
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
GroovyCastException
public GroovyCastException(Object objectToCast,
Class classToCastTo,
Exception cause)
- Parameters:
objectToCast
- object we tried to castclassToCastTo
- class we tried to cast tocause
- not kept but we pass on message from this Exception if any
GroovyCastException
public GroovyCastException(Object objectToCast,
Class classToCastTo)
- Parameters:
objectToCast
- object we tried to castclassToCastTo
- class we tried to cast to
GroovyCastException
public GroovyCastException(String message)
- Parameters:
message
- custom Exception message