类 ParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sh.compile.express.ParseException
所有已实现的接口:
Serializable

public class ParseException extends Exception

Description:

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2014年12月11日
另请参阅:
  • 字段详细资料

    • specialConstructor

      protected boolean specialConstructor
      This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).
    • currentToken

      public Token currentToken
      This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.
    • eol

      protected static final String eol
      The end of line string for this machine.
    • expectedTokenSequences

      public int[][] expectedTokenSequences
      Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.
    • tokenImage

      public String[] tokenImage
      This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.
  • 构造器详细资料

    • ParseException

      public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
    • ParseException

      public ParseException()
      The following constructors are for use by you for whatever purpose you can think of. Constructing the exception in this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable". The fields "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information. The JavaCC generated code does not use these constructors.
    • ParseException

      public ParseException(String message)
    • ParseException

      public ParseException(Token currentTokenVal, String message)
  • 方法详细资料

    • getMessage

      public String getMessage()
      This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.
      覆盖:
      getMessage 在类中 Throwable
    • getErrorInfo

      public String getErrorInfo()