org.drools
Class DroolsException

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

public class DroolsException
extends Exception

Base drools Logic Engine exception.

Version:
$Id: DroolsException.java,v 1.15 2004/11/19 02:12:12 mproctor Exp $
Author:
bob mcwhirter
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
DroolsException()
          Construct.
DroolsException(String msg)
          Construct with a message.
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.
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.

Returns:
The error message.

getLocalizedMessage

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

Returns:
The error message.

printStackTrace

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

Parameters:
s - The output sink.

printStackTrace

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

Parameters:
s - The output sink.


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