Apache Lucene.Net 2.4.0 Class Library API

TokenMgrError Members

TokenMgrError overview

Protected Internal Static Methods

addEscapes Replaces unprintable characters by their espaced (or unicode escaped) equivalents in the given string
LexicalError Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. Parameters : EOFSeen : indicates if EOF caused the lexicl error curLexState : lexical state in which this error occured errorLine : line number when the error occured errorColumn : column number when the error occured errorAfter : prefix that was seen before this error occured curchar : the offending character Note: You can customize the lexical error message by modifying this method.

Public Instance Constructors

TokenMgrError Overloaded. Initializes a new instance of the TokenMgrError class.

Public Instance Properties

Data (inherited from Exception)Gets a collection of key/value pairs that provide additional, user-defined information about the exception.
HelpLink (inherited from Exception)Gets or sets a link to the help file associated with this exception.
InnerException (inherited from Exception)Gets the Exception instance that caused the current exception.
Message 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.
Source (inherited from Exception)Gets or sets the name of the application or the object that causes the error.
StackTrace (inherited from Exception)Gets a string representation of the frames on the call stack at the time the current exception was thrown.
TargetSite (inherited from Exception)Gets the method that throws the current exception.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBaseException (inherited from Exception)When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData (inherited from Exception)When overridden in a derived class, sets the SerializationInfo with information about the exception.
GetType (inherited from Exception)Gets the runtime type of the current instance.
ToString (inherited from Exception)Creates and returns a string representation of the current exception.

Protected Instance Properties

HResult (inherited from Exception)Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

TokenMgrError Class | Lucene.Net.QueryParsers Namespace