[Java] Class GroovyCastException
- org.codehaus.groovy.runtime.typehandling.GroovyCastException
Constructor Summary
| Constructor and description |
|---|
GroovyCastException
(Object objectToCast, Class classToCastTo, Exception cause)@param objectToCast object we tried to cast |
GroovyCastException
(Object objectToCast, Class classToCastTo)@param objectToCast object we tried to cast |
GroovyCastException
(String message)@param message custom Exception message |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class ClassCastException | printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class RuntimeException | printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail
public GroovyCastException(Object objectToCast, Class classToCastTo, 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
public GroovyCastException(Object objectToCast, Class classToCastTo)
- Parameters:
-
objectToCast- object we tried to cast -
classToCastTo- class we tried to cast to
public GroovyCastException(String message)
- Parameters:
-
message- custom Exception message
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/runtime/typehandling/GroovyCastException.html