public class MissingPropertyException
extends GroovyRuntimeException
An exception occurred if a dynamic property dispatch fails with an unknown property.
Note that the Missing*Exception classes were named for consistency and to avoid conflicts with JDK exceptions of the same name.
| Constructor and description |
|---|
MissingPropertyException(String property, Class type)Creates an exception for a missing property. |
MissingPropertyException(String property, Class type, Throwable cause)Creates an exception for a missing property with an underlying cause. |
MissingPropertyException(String message)Creates an exception with a custom message. |
MissingPropertyException(String message, String property, Class type)Creates an exception with a custom message for a missing property. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getMessageWithoutLocationText()Returns the detail message without any location suffix. |
|
public String |
getProperty()
|
|
public Class |
getType()
|
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Creates an exception for a missing property.
property - the missing property nametype - the target typeCreates an exception for a missing property with an underlying cause.
property - the missing property nametype - the target typecause - the underlying causeCreates an exception with a custom message.
message - the detail messageReturns the detail message without any location suffix.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.