Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | Properties | List of all members
Lucene.Net.QueryParsers.TokenMgrError Class Reference

Token Manager Error. More...

Inherits ApplicationException.

Public Member Functions

 TokenMgrError ()
 No arg constructor.
 
 TokenMgrError (System.String message, int reason)
 Constructor with message and reason.
 
 TokenMgrError (bool EOFSeen, int lexState, int errorLine, int errorColumn, System.String errorAfter, char curChar, int reason)
 Full Constructor.
 

Properties

override System.String Message [get]
 You can also modify the body of this method to customize your error messages. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not of end-users concern, so you can return something like :
 

Detailed Description

Token Manager Error.

Definition at line 28 of file TokenMgrError.cs.

Constructor & Destructor Documentation

Lucene.Net.QueryParsers.TokenMgrError.TokenMgrError ( )

No arg constructor.

Definition at line 153 of file TokenMgrError.cs.

Lucene.Net.QueryParsers.TokenMgrError.TokenMgrError ( System.String  message,
int  reason 
)

Constructor with message and reason.

Definition at line 158 of file TokenMgrError.cs.

Lucene.Net.QueryParsers.TokenMgrError.TokenMgrError ( bool  EOFSeen,
int  lexState,
int  errorLine,
int  errorColumn,
System.String  errorAfter,
char  curChar,
int  reason 
)

Full Constructor.

Definition at line 164 of file TokenMgrError.cs.

Property Documentation

override System.String Lucene.Net.QueryParsers.TokenMgrError.Message
get

You can also modify the body of this method to customize your error messages. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not of end-users concern, so you can return something like :

"Internal Error : Please file a bug report .... "

from this method for such cases in the release version of your parser.

Definition at line 39 of file TokenMgrError.cs.


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