Serializable
public class GroovyCastException extends ClassCastException
Constructor | Description |
---|---|
GroovyCastException(Object objectToCast,
Class classToCastTo) |
|
GroovyCastException(Object objectToCast,
Class classToCastTo,
Exception cause) |
|
GroovyCastException(String message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public GroovyCastException(Object objectToCast, Class classToCastTo, Exception cause)
objectToCast
- object we tried to castclassToCastTo
- class we tried to cast tocause
- not kept but we pass on message from this Exception if anypublic GroovyCastException(Object objectToCast, Class classToCastTo)
objectToCast
- object we tried to castclassToCastTo
- class we tried to cast topublic GroovyCastException(String message)
message
- custom Exception message