public class GroovyCastException extends ClassCastException
Constructor and Description |
---|
GroovyCastException(Object objectToCast,
Class classToCastTo) |
GroovyCastException(Object objectToCast,
Class classToCastTo,
Exception cause) |
GroovyCastException(String message) |
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