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

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


org.drools.compiler
Class RuleError

java.lang.Object
  extended by org.drools.compiler.DroolsError
      extended by org.drools.compiler.RuleError

public class RuleError
extends DroolsError


Constructor Summary
RuleError(Rule rule, BaseDescr descr, Object object, String message)
           
 
Method Summary
 BaseDescr getDescr()
           
 int getLine()
          This will return the line number of the error, if possible Otherwise it will be -1
 String getMessage()
          Classes that extend this must provide a printable message, which summarises the error.
 Object getObject()
           
 Rule getRule()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleError

public RuleError(Rule rule,
                 BaseDescr descr,
                 Object object,
                 String message)
Method Detail

getRule

public Rule getRule()

getDescr

public BaseDescr getDescr()

getObject

public Object getObject()

getLine

public int getLine()
This will return the line number of the error, if possible Otherwise it will be -1


getMessage

public String getMessage()
Description copied from class: DroolsError
Classes that extend this must provide a printable message, which summarises the error.

Specified by:
getMessage in class DroolsError

toString

public String toString()
Overrides:
toString in class Object


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