站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ParseException (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.lang
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.drools.RuntimeDroolsException
                  extended by org.drools.lang.ParseException
All Implemented Interfaces:
Serializable

public class ParseException
extends RuntimeDroolsException

See Also:
Serialized Form

Constructor Summary
ParseException(String message, int lineNumber)
          Thrown if there is an exception related to parsing a line in a drl file.
ParseException(String message, int lineNumber, Throwable cause)
          Allows nesting of misc exceptions, yet preserving the line number that triggered the error.
 
Method Summary
 Throwable getCause()
           
 int getLineNumber()
          The line number on which the error occurred.
 String getMessage()
          This will print out a summary, including the line number.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException(String message,
                      int lineNumber)
Thrown if there is an exception related to parsing a line in a drl file. For more generic exception, a different exception class will be used.


ParseException

public ParseException(String message,
                      int lineNumber,
                      Throwable cause)
Allows nesting of misc exceptions, yet preserving the line number that triggered the error.

Method Detail

getLineNumber

public int getLineNumber()
The line number on which the error occurred.


getMessage

public String getMessage()
This will print out a summary, including the line number. It will also print out the cause message if applicable.

Overrides:
getMessage in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.