public class ParserStackedException extends ParserException
| Modifier and Type | Class and Description |
|---|---|
static class |
ParserStackedException.Message
Helper class to store message with location.
|
| Constructor and Description |
|---|
ParserStackedException(AstLocation location,
java.lang.String message)
Constructor from the main error message.
|
ParserStackedException(ParserException exception)
Constructor from main parser exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<ParserStackedException.Message> |
getMessageStack()
Gets the extended message stack.
|
void |
pushMessage(AstLocation location,
java.lang.String message)
Pushes new message on the top of the extended message stack.
|
getLocationpublic ParserStackedException(AstLocation location, java.lang.String message)
location - AST location where the error occurred.message - The main message for the error.public ParserStackedException(ParserException exception)
exception - The main parser exception containing the main error message.public java.lang.Iterable<ParserStackedException.Message> getMessageStack()
public void pushMessage(AstLocation location, java.lang.String message)
location - AST location where the error occurred.message - The extended message for the error.Last updated 2024-10-29 12:56:13