public class GroovyCastException extends ClassCastException
| Constructor and description | 
|---|
| GroovyCastException(Object objectToCast, Class classToCastTo, Exception cause)
 | 
| GroovyCastException(Object objectToCast, Class classToCastTo)
 | 
| GroovyCastException(String message)
 | 
| Methods inherited from class | Name | 
|---|---|
| class ClassCastException | addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait | 
objectToCast -  object we tried to castclassToCastTo -  class we tried to cast tocause -  not kept but we pass on message from this Exception if any
objectToCast -  object we tried to castclassToCastTo -  class we tried to cast to
message -  custom Exception messageCopyright © 2003-2025 The Apache Software Foundation. All rights reserved.