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

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


org.drools.spi
Class ConsequenceException

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.spi.ConsequenceException
All Implemented Interfaces:
Serializable

public class ConsequenceException
extends RuntimeDroolsException

Indicates an error during a Consequence invocation.

Author:
Mark Proctor, Bob McWhirter
See Also:
Consequence, Serialized Form

Constructor Summary
ConsequenceException()
          Construct.
ConsequenceException(Rule rule)
           
ConsequenceException(String message)
           
ConsequenceException(String message, Rule rule)
          Construct with a message.
ConsequenceException(String message, Rule rule, String info)
           
ConsequenceException(Throwable rootCause)
          Construct with a root cause.
ConsequenceException(Throwable rootCause, Rule rule)
          Construct with a root cause.
ConsequenceException(Throwable rootCause, Rule rule, String info)
          Construct with a root cause.
 
Method Summary
 String getInfo()
           
 Rule getRule()
           
 void setInfo(String info)
          Set arbitrary extra information about the condition.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsequenceException

public ConsequenceException()
Construct.


ConsequenceException

public ConsequenceException(String message)

ConsequenceException

public ConsequenceException(Throwable rootCause)
Construct with a root cause.

Parameters:
rootCause - The root cause of this exception.

ConsequenceException

public ConsequenceException(Rule rule)

ConsequenceException

public ConsequenceException(String message,
                            Rule rule)
Construct with a message. Keep this from old ConsequenceException for backward compatability

Parameters:
rootCause - The root cause of this exception.

ConsequenceException

public ConsequenceException(Throwable rootCause,
                            Rule rule)
Construct with a root cause. Keep this from old ConsequenceException for backward compatability

Parameters:
rootCause - The root cause of this exception.

ConsequenceException

public ConsequenceException(String message,
                            Rule rule,
                            String info)

ConsequenceException

public ConsequenceException(Throwable rootCause,
                            Rule rule,
                            String info)
Construct with a root cause.

Parameters:
rootCause - The root cause of this exception.
Method Detail

getRule

public Rule getRule()

setInfo

public void setInfo(String info)
Set arbitrary extra information about the condition.

The info property may be used to communicate the actual block text or other information in the case that Consequence does not have block text.


getInfo

public String getInfo()


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