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

PerCederberg.Grammatica.Runtime
Class ParseException

Exception
   |
   +--ParseException

   in ParseException.cs

public class ParseException
extends Exception

A parse exception.


Inner Classes, Typedefs, and Enums
enum ParseException.ErrorType
          The error type enumeration.
 
Field Summary
 int Column
          The column number property (read-only).
 ArrayList Details
          The additional detailed error information property (read-only).
 string ErrorMessage
          The error message property (read-only).
 string Info
          The additional error information property (read-only).
 int Line
          The line number property (read-only).
 override string Message
          The message property (read-only).
 ParseException.ErrorType Type
          The error type property (read-only).
 
Constructor Summary
ParseException( ParseException.ErrorType type, string info, int line, int column )
          Creates a new parse exception.
ParseException( ParseException.ErrorType type, string info, ArrayList details, int line, int column )
          Creates a new parse exception.
 
Method Summary
 int GetColumn()
          Deprecated. Use the Column property instead.
 ArrayList GetDetails()
          Deprecated. Use the Details property instead.
 string GetErrorMessage()
          Deprecated. Use the ErrorMessage property instead.
 ParseException.ErrorType GetErrorType()
          Deprecated. Use the Type property instead.
 string GetInfo()
          Deprecated. Use the Info property instead.
 int GetLine()
          Deprecated. Use the Line property instead.
 string GetMessage()
          Deprecated. Use the Message property instead.
 

Field Detail

Column

public int Column;
The column number property (read-only). This is the column number where the error occured, or -1 if unknown.
Since:
1.5

Details

public ArrayList Details;
The additional detailed error information property (read-only).
Since:
1.5

ErrorMessage

public string ErrorMessage;
The error message property (read-only). This property contains all the information available, except for the line and column number information.
Since:
1.5
See Also:
Message

Info

public string Info;
The additional error information property (read-only).
Since:
1.5

Line

public int Line;
The line number property (read-only). This is the line number where the error occured, or -1 if unknown.
Since:
1.5

Message

public override string Message;
The message property (read-only). This property contains the detailed exception error message, including line and column numbers when available.
See Also:
ErrorMessage

Type

public ParseException.ErrorType Type;
The error type property (read-only).
Since:
1.5


Constructor Detail

ParseException

public ParseException( ParseException.ErrorType type, string info, int line, int column );
Creates a new parse exception.
Parameters:
type - the parse error type
info - the additional information
line - the line number, or -1 for unknown
column - the column number, or -1 for unknown

ParseException

public ParseException( ParseException.ErrorType type, string info, ArrayList details, int line, int column );
Creates a new parse exception. This constructor is only used to supply the detailed information array, which is only used for expected token errors. The list then contains descriptions of the expected tokens.
Parameters:
type - the parse error type
info - the additional information
details - the additional detailed information
line - the line number, or -1 for unknown
column - the column number, or -1 for unknown


Method Detail

GetColumn

public int GetColumn();
Deprecated. Use the Column property instead.

Returns the column number where the error occured.

Returns:
the column number of the error, or -1 if unknown
See Also:
Column

GetDetails

public ArrayList GetDetails();
Deprecated. Use the Details property instead.

Returns the additional detailed error information.

Returns:
the additional detailed error information
See Also:
Details

GetErrorMessage

public string GetErrorMessage();
Deprecated. Use the ErrorMessage property instead.

Returns the error message. This message will contain all the information available, except for the line and column number information.

Returns:
the error message
See Also:
ErrorMessage

GetErrorType

public ParseException.ErrorType GetErrorType();
Deprecated. Use the Type property instead.

Returns the error type.

Returns:
the error type
See Also:
Type

GetInfo

public string GetInfo();
Deprecated. Use the Info property instead.

Returns the additional error information.

Returns:
the additional error information
See Also:
Info

GetLine

public int GetLine();
Deprecated. Use the Line property instead.

Returns the line number where the error occured.

Returns:
the line number of the error, or -1 if unknown
See Also:
Line

GetMessage

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

Returns a default error message.

Returns:
a default error message
See Also:
Message

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