org.drools
Class DroolsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.drools.DroolsException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CompilationException, FactException, FactoryException, IntegrationException, MissingDeclarationException, ReteException, RuleConstructionException, SemanticModuleException

public class DroolsException
extends java.lang.Exception

Base drools Logic Engine exception.

See Also:
Serialized Form
 

Constructor Summary
DroolsException()
          Construct.
DroolsException(java.lang.String msg)
          Construct with a message.
DroolsException(java.lang.String msg, java.lang.Throwable rootCause)
          Construct with a message and root cause.
DroolsException(java.lang.Throwable rootCause)
          Construct with a root cause.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Retrieve the error message localized to the default locale.
 java.lang.String getMessage()
          Retrieve the error message.
 java.lang.Throwable getRootCause()
          Get the root cause, if any.
 void printStackTrace(java.io.PrintStream s)
          Print the stack trace.
 void printStackTrace(java.io.PrintWriter s)
          Print the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DroolsException

public DroolsException()
Construct.


DroolsException

public DroolsException(java.lang.String msg)
Construct with a message.

Parameters:
msg - The message.

DroolsException

public DroolsException(java.lang.Throwable rootCause)
Construct with a root cause.

Parameters:
rootCause - The root cause of this exception.

DroolsException

public DroolsException(java.lang.String msg,
                       java.lang.Throwable rootCause)
Construct with a message and root cause.

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

getRootCause

public java.lang.Throwable getRootCause()
Get the root cause, if any.

Returns:
The root cause of this exception, as a Throwable, if this exception has a root cause, else null.

getMessage

public java.lang.String getMessage()
Retrieve the error message.

Returns:
The error message.

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Retrieve the error message localized to the default locale.

Returns:
The error message.

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Print the stack trace.

Parameters:
s - The output sink.

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Print the stack trace.

Parameters:
s - The output sink.