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

PerCederberg.Grammatica.Parser
Class ParserCreationException

Exception
   |
   +--ParserCreationException

   in ParserCreationException.cs

class ParserCreationException
extends Exception

A parser creation exception. This exception is used for signalling an error in the token or production patterns, making it impossible to create a working parser or tokenizer.


Inner Classes, Typedefs, and Enums
enum ParserCreationException.ErrorType
          The error type enumeration.
 
Field Summary
 override string Message
          The message property.
 
Constructor Summary
ParserCreationException( ParserCreationException.ErrorType type, String info )
          Creates a new parser creation exception.
ParserCreationException( ParserCreationException.ErrorType type, String name, String info )
          Creates a new parser creation exception.
ParserCreationException( ParserCreationException.ErrorType type, String name, String info, ArrayList details )
          Creates a new parser creation exception.
 
Method Summary
 string GetDetails()
          Returns the detailed error information as a string
 ParserCreationException.ErrorType GetErrorType()
          Returns the error type.
 string GetInfo()
          Returns the additional error information.
 string GetMessage()
          Returns the error message.
 string GetName()
          Returns the token or production name.
 

Field Detail

Message

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


Constructor Detail

ParserCreationException

public ParserCreationException( ParserCreationException.ErrorType type, String info );
Creates a new parser creation exception.
Parameters:
type - the parse error type
info - the additional error information

ParserCreationException

public ParserCreationException( ParserCreationException.ErrorType type, String name, String info );
Creates a new parser creation exception.
Parameters:
type - the parse error type
name - the token or production pattern name
info - the additional error information

ParserCreationException

public ParserCreationException( ParserCreationException.ErrorType type, String name, String info, ArrayList details );
Creates a new parser creation exception.
Parameters:
type - the parse error type
name - the token or production pattern name
info - the additional error information
details - the error details list


Method Detail

GetDetails

public string GetDetails();
Returns the detailed error information as a string
Returns:
the detailed error information

GetErrorType

public ParserCreationException.ErrorType GetErrorType();
Returns the error type.
Returns:
the error type

GetInfo

public string GetInfo();
Returns the additional error information.
Returns:
the additional error information

GetMessage

public string GetMessage();
Returns the error message. This message will contain all the information available.
Returns:
the error message

GetName

public string GetName();
Returns the token or production name.
Returns:
the token or production name

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