javax.rules
Class RuleException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
embeddedException
protected java.lang.Throwable embeddedException
- The embedded exception.
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.
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.
- Overrides:
printStackTrace
in class java.lang.Throwable
- 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.
- Overrides:
printStackTrace
in class java.lang.Throwable
- 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.
- Overrides:
printStackTrace
in class java.lang.Throwable
toString
public java.lang.String toString()
- This method is for debugging only and may change at anytime.
- Overrides:
toString
in class java.lang.Throwable
Copyright © 2003 Java Community Process. All Rights Reserved.