public class RuntimeParserException
extends GroovyRuntimeException
A runtime exception wrapper for parser errors, allowing parser exceptions to be thrown from contexts that cannot throw checked exceptions. Can be converted back to a SyntaxException when needed for proper error handling.
| Constructor and description |
|---|
RuntimeParserException(String message, ASTNode node)Constructs a RuntimeParserException from an error message and AST node. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
throwParserException()Converts this runtime exception to a checked SyntaxException. |
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Converts this runtime exception to a checked SyntaxException. Extracts position information from the associated AST node.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.