Package: org.codehaus.groovy.syntax

## [Java] Class RuntimeParserException

- org.codehaus.groovy.syntax.RuntimeParserException

-     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 Summary

    Constructors
    Constructor and description
    `RuntimeParserException(String message, ASTNode node)` Constructs a RuntimeParserException from an error message and AST node.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `throwParserException()` Converts this runtime exception to a checked SyntaxException.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GroovyRuntimeException` | `getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule`

- - ### Constructor Detail

    - #### public RuntimeParserException(String message, ASTNode node)

      Constructs a RuntimeParserException from an error message and AST node. The node's position information is included in the error message.

      Parameters:
        `message` - the error message
        `node` - the ASTNode where the error occurred

  - ### Method Detail

    - #### public void throwParserException()

      Converts this runtime exception to a checked SyntaxException. Extracts position information from the associated AST node.

      throws:
        SyntaxException containing the error details from this runtime exception