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:
- java.io.Serializable
public class GroovyCastException
extends java.lang.ClassCastException
- See Also:
- Serialized Form
- 
Constructor SummaryConstructors Constructor Description 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 SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
GroovyCastExceptionpublic 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
 
- 
GroovyCastExceptionpublic GroovyCastException(java.lang.Object objectToCast, java.lang.Class classToCastTo)- Parameters:
- objectToCast- object we tried to cast
- classToCastTo- class we tried to cast to
 
- 
GroovyCastExceptionpublic GroovyCastException(java.lang.String message)- Parameters:
- message- custom Exception message
 
 
-