Grammatica
Public Member Functions | Properties | List of all members
PerCederberg.Grammatica.Runtime.ParserLogException Class Reference

A parser log exception. More...

Inheritance diagram for PerCederberg.Grammatica.Runtime.ParserLogException:

Public Member Functions

 ParserLogException ()
 Creates a new empty parser log exception.
 
int GetErrorCount ()
 Returns the number of errors in this log. More...
 
ParseException GetError (int index)
 Returns a specific error from the log. More...
 
void AddError (ParseException e)
 Adds a parse error to the log. More...
 
string GetMessage ()
 Returns the detailed error message. More...
 

Properties

override string Message [get]
 The message property (read-only). More...
 
int Count [get]
 The error count property (read-only). More...
 
ParseException this[int index] [get]
 The error index (read-only). More...
 

Detailed Description

A parser log exception.

This class contains a list of all the parse errors encountered while parsing.

Author
Per Cederberg
Version
1.5
Since
1.1

Member Function Documentation

void PerCederberg.Grammatica.Runtime.ParserLogException.AddError ( ParseException  e)
inline

Adds a parse error to the log.

Parameters
ethe parse error to add
ParseException PerCederberg.Grammatica.Runtime.ParserLogException.GetError ( int  index)
inline

Returns a specific error from the log.

Parameters
indexthe error index, 0 <= index < count
Returns
the parse error requested
Deprecated:
Use the class indexer instead.
int PerCederberg.Grammatica.Runtime.ParserLogException.GetErrorCount ( )
inline

Returns the number of errors in this log.

Returns
the number of errors in this log
See also
Count
Deprecated:
Use the Count property instead.
string PerCederberg.Grammatica.Runtime.ParserLogException.GetMessage ( )
inline

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
Deprecated:
Use the Message property instead.

Property Documentation

int PerCederberg.Grammatica.Runtime.ParserLogException.Count
get

The error count property (read-only).

Since
1.5
override string PerCederberg.Grammatica.Runtime.ParserLogException.Message
get

The message property (read-only).

This property contains the detailed exception error message.

ParseException PerCederberg.Grammatica.Runtime.ParserLogException.this[int index]
get

The error index (read-only).

This index contains all the errors in this error log.

Parameters
indexthe error index, 0 <= index < Count
Returns
the parse error requested
Since
1.5

The documentation for this class was generated from the following file: