|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Exception
|
+--ParserLogException
in ParserLogException.csA parser log exception. This class contains a list of all the parse errors encountered while parsing.
| Field Summary | |
int |
Count
The error count property (read-only). |
override string |
Message
The message property (read-only). |
ParseException[ int index ] |
this
The error index (read-only). |
| Constructor Summary | |
ParserLogException()
Creates a new empty parser log exception. |
|
| Method Summary | |
void |
AddError( ParseException e )
Adds a parse error to the log. |
ParseException |
GetError( int index )
Deprecated. Use the class indexer instead. |
int |
GetErrorCount()
Deprecated. Use the Count property instead. |
string |
GetMessage()
Deprecated. Use the Message property instead. |
| Field Detail |
public int Count;
public override string Message;
public ParseException this[ int index ];
index - the error index, 0 <= index < Count| Constructor Detail |
public ParserLogException();
| Method Detail |
public void AddError( ParseException e );
e - the parse error to addpublic ParseException GetError( int index );
Returns a specific error from the log.
index - the error index, 0 <= index < countpublic int GetErrorCount();
Returns the number of errors in this log.
Countpublic string GetMessage();
Returns the detailed error message. This message will contain the error messages from all errors in this log, separated by a newline.
Message
|
Grammatica 1.5 Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||