Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.6.3)

E10663-10


oracle.rules.rl.exceptions
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.rules.rl.exceptions.RLException
              extended by oracle.rules.rl.exceptions.ParseException

All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends RLException

Syntax error -- thrown when parse errors are encountered.

See Also:
Serialized Form

Field Summary
 java.lang.String encountered
          This is the value of the unexpected token.
 java.lang.String expected
          The values of tokens expected at this point of the parse.
 boolean expectOne
          Whether just one token stream is expected

 

Constructor Summary
ParseException()
          This constructor indicates an internal parser error.
ParseException(java.lang.String message, int line, int column)
          The following constructors are for use by you for whatever purpose you can think of.
ParseException(java.lang.String message, int line, int column, java.lang.Throwable cause)
           
ParseException(java.lang.String message, java.lang.String msgID, java.lang.Object[] args, int line, int column)
           
ParseException(java.lang.String message, java.lang.String msgID, java.lang.Object[] args, int line, int column, java.lang.Throwable cause)
           
ParseException(oracle.rules.rl.parse.Token currentToken, int[][] expectedTokenSequences, java.lang.String[] tokenImage)
          This constructor is used by the method "generateParseException" in the generated parser.

 

Method Summary

 

Methods inherited from class oracle.rules.rl.exceptions.RLException
addRLStackTraceElement, getArgs, getColumn, getDescription, getLine, getMessage, getMsgID, getSource, printRLStackTrace, printRLStackTrace, printRLStackTrace, setColumn, setLine, setSource

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

encountered

public java.lang.String encountered
This is the value of the unexpected token.

expected

public java.lang.String expected
The values of tokens expected at this point of the parse.

expectOne

public boolean expectOne
Whether just one token stream is expected

Constructor Detail

ParseException

public ParseException()
This constructor indicates an internal parser error.

ParseException

public ParseException(oracle.rules.rl.parse.Token currentToken,
                      int[][] expectedTokenSequences,
                      java.lang.String[] tokenImage)
This constructor is used by the method "generateParseException" in the generated parser. Calling this constructor generates a new object of this type with the fields "encountered", "expected", and "expectOne" set. This ParseException should never be thrown. It is used to pass the 3 fields to an ExceptionFactory.createParseException() method to localize the error message. This constructor calls its super class with the string "Internal Error localizing error message" just in case it should accidently get thrown.

ParseException

public ParseException(java.lang.String message,
                      int line,
                      int column)
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(java.lang.String message,
                      int line,
                      int column,
                      java.lang.Throwable cause)

ParseException

public ParseException(java.lang.String message,
                      java.lang.String msgID,
                      java.lang.Object[] args,
                      int line,
                      int column)

ParseException

public ParseException(java.lang.String message,
                      java.lang.String msgID,
                      java.lang.Object[] args,
                      int line,
                      int column,
                      java.lang.Throwable cause)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.6.3)

E10663-10


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.