javax.rules
Class RuleException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.rules.RuleException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigurationException, RuleAdministrationException, RuleExecutionException

public class RuleException
extends java.lang.Exception

Base class for all Exception classes in the javax.rules package.

See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable embeddedException
          The embedded exception.
 
Constructor Summary
RuleException(java.lang.String message)
          Creates a RuleException with a given message.
RuleException(java.lang.String message, java.lang.Throwable exception)
          Creates a RuleException with a given message and nested exception.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the embedded exception.
 void printStackTrace()
          Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
 void printStackTrace(java.io.PrintStream out)
          Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
 void printStackTrace(java.io.PrintWriter out)
          Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.
 java.lang.String toString()
          This method is for debugging only and may change at anytime.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

embeddedException

protected java.lang.Throwable embeddedException
The embedded exception.

Constructor Detail

RuleException

public RuleException(java.lang.String message)
Creates a RuleException with a given message.

Parameters:
message - the exception message.

RuleException

public RuleException(java.lang.String message,
                     java.lang.Throwable exception)
Creates a RuleException with a given message and nested exception.

Parameters:
message - The exception message.
exception - The nested exception.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the embedded exception.

Returns:
The embedded exception;

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.

Parameters:
out - PrintStream used to output the stack trace

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.

Parameters:
out - PrintWriter used to output the stack trace

printStackTrace

public void printStackTrace()
Designed to print the stack trace of this exception, as well as the exception it is chained to, if applicable.


toString

public java.lang.String toString()
This method is for debugging only and may change at anytime.



Copyright © 2004 Java Community Process. All Rights Reserved.