public class MissingFieldException
extends GroovyRuntimeException
An exception occurred if a dynamic field dispatch fails with an unknown field. Note that the Missing*Exception classes were named for consistency and to avoid conflicts with JDK exceptions of the same name.
| Constructor and description |
|---|
MissingFieldException(String field, Class type)Creates an exception for a missing field. |
MissingFieldException(String field, Class type, Throwable e)Creates an exception for a missing field with an underlying cause. |
MissingFieldException(String message, String field, Class type)Creates an exception with a custom message for a missing field. |
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Creates an exception for a missing field.
field - the missing field nametype - the target typeCreates an exception for a missing field with an underlying cause.
field - the missing field nametype - the target typee - the underlying causeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.