org.drools
Class DroolsException

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

public class DroolsException
extends Exception

Base drools Logic Engine exception.

Version:
$Id: DroolsException.java,v 1.18 2005/01/09 23:49:24 memelet Exp $
Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
DroolsException()
          Construct.
DroolsException(String msg)
          Construct with a message.
DroolsException(String msg, Throwable rootCause)
          Construct with a message and root cause.
DroolsException(Throwable rootCause)
          Construct with a root cause.
 
Method Summary
 String getLocalizedMessage()
          Retrieve the error message localized to the default locale.
 String getMessage()
          Retrieve the error message.
 Throwable getRootCause()
          Get the root cause, if any.
 void printStackTrace(PrintStream s)
          Print the stack trace.
 void printStackTrace(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(String msg)
Construct with a message.

Parameters:
msg - The message.

DroolsException

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

Parameters:
rootCause - The root cause of this exception.

DroolsException

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

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

getRootCause

public 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 String getMessage()
Retrieve the error message.

Overrides:
getMessage in class Throwable
Returns:
The error message.

getLocalizedMessage

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

Overrides:
getLocalizedMessage in class Throwable
Returns:
The error message.

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
s - The output sink.

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
s - The output sink.


Copyright © 2001-2005 The Codehaus. All Rights Reserved.