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

PerCederberg.Grammatica.Runtime
Class ParserCreationException

Exception
   |
   +--ParserCreationException

   in ParserCreationException.cs

public 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
 string Details
          The detailed error information property (read-only).
 string Info
          The additional error information property (read-only).
 override string Message
          The message property (read-only).
 string Name
          The token or production name property (read-only).
 ParserCreationException.ErrorType Type
          The error type property (read-only).
 
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()
          Deprecated. Use the Details property instead.
 ParserCreationException.ErrorType GetErrorType()
          Deprecated. Use the Type property instead.
 string GetInfo()
          Deprecated. Use the Info property instead.
 string GetMessage()
          Deprecated. Use the Message property instead.
 string GetName()
          Deprecated. Use the Name property instead.
 

Field Detail

Details

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

Info

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

Message

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

Name

public string Name;
The token or production name property (read-only).
Since:
1.5

Type

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


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();
Deprecated. Use the Details property instead.

Returns the detailed error information as a string

Returns:
the detailed error information
See Also:
Details

GetErrorType

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

GetMessage

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

Returns the error message. This message will contain all the information available.

Returns:
the error message
See Also:
Message

GetName

public string GetName();
Deprecated. Use the Name property instead.

Returns the token or production name.

Returns:
the token or production name
See Also:
Name

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