Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

PerCederberg.Grammatica.Runtime
Class ParserLogException

Exception
   |
   +--ParserLogException

   in ParserLogException.cs

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

Count

public int Count;
The error count property (read-only).
Since:
1.5

Message

public override string Message;
The message property (read-only). This property contains the detailed exception error message.

this

public ParseException this[ int index ];
The error index (read-only). This index contains all the errors in this error log.
Parameters:
index - the error index, 0 <= index < Count
Returns:
the parse error requested
Since:
1.5


Constructor Detail

ParserLogException

public ParserLogException();
Creates a new empty parser log exception.


Method Detail

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 );
Deprecated. Use the class indexer instead.

Returns a specific error from the log.

Parameters:
index - the error index, 0 <= index < count
Returns:
the parse error requested

GetErrorCount

public int GetErrorCount();
Deprecated. Use the Count property instead.

Returns the number of errors in this log.

Returns:
the number of errors in this log
See Also:
Count

GetMessage

public string GetMessage();
Deprecated. Use the Message property instead.

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
See Also:
Message

 Overview   Project   Class   Tree   Deprecated   Index 
Grammatica 1.5 Documentation
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD