PerCederberg.Grammatica.Parser
Class ParserLogException
Exception
|
+--ParserLogException
in ParserLogException.cs
- class ParserLogException
- extends Exception
A parser log exception. This class contains a list of all the parse
errors encountered while parsing.
- Since:
- 1.1
Field Summary |
override string |
Message
The message property. |
Message
public override string Message;
- The message property. This property contains the detailed
exception error message.
ParserLogException
public ParserLogException();
- Creates a new empty parser log exception.
AddError
public void AddError( ParseException e );
- Adds a parse error to the log.
- Parameters:
e
- the parse error to add
GetError
public ParseException GetError( int index );
- Returns a specific error from the log.
- Parameters:
index
- the error index, 0 <= index < count
- Returns:
- the parse error requested
GetErrorCount
public int GetErrorCount();
- Returns the number of errors in this log.
- Returns:
- the number of errors in this log
GetMessage
public string GetMessage();
- Returns the detailed error message. This message will contain
the error messages from all errors in this log, separated by
a newline.
- Returns:
- the detailed error message