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

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.
 
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 )
          Returns a specific error from the log.
 int GetErrorCount()
          Returns the number of errors in this log.
 string GetMessage()
          Returns the detailed error message.
 

Field Detail

Message

public override string Message;
The message property. This property contains the detailed exception error message.


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 );
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

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