NVelocity.Runtime.Parser
Class TokenMgrError

Constructor Summary
TokenMgrError()
         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.
TokenMgrError(string message, int reason)
TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar, int reason)

Property Summary
string Message

Properties inherited from class System.Exception
HelpLink, HResult, InnerException, Source, StackTrace, TargetSite

Method Summary
string addEscapes(string str)
         Replaces unprintable characters by their espaced (or unicode escaped) equivalents in the given string

Methods inherited from class System.Exception
GetBaseException, GetObjectData, ToString

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone


Constructor Detail

TokenMgrError

public TokenMgrError()

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.


TokenMgrError

public TokenMgrError(string message,
                     int reason)


TokenMgrError

public TokenMgrError(bool EOFSeen,
                     int lexState,
                     int errorLine,
                     int errorColumn,
                     string errorAfter,
                     char curChar,
                     int reason)

Property Detail

Message

public string Message

Method Detail

addEscapes

protected internal string addEscapes(string str)

Replaces unprintable characters by their espaced (or unicode escaped) equivalents in the given string