javax.rules
Class InvalidRuleSessionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.rules.RuleException
              extended byjavax.rules.RuleExecutionException
                  extended byjavax.rules.InvalidRuleSessionException
All Implemented Interfaces:
java.io.Serializable

public class InvalidRuleSessionException
extends RuleExecutionException

The InvalidRuleSessionException should be thrown when a method is invoked on a RuleSession and the internal state of the RuleSession is invalid. This may have occured because a StatefulRuleSession has been serialized and external resources can no longer be accessed.

This exception is also used to signal that a RuleSession is in an invalid state (such as an attempt to use it after the release method has been called).

See Also:
StatefulRuleSession, StatelessRuleSession, Serialized Form

Field Summary
 
Fields inherited from class javax.rules.RuleException
embeddedException
 
Constructor Summary
InvalidRuleSessionException(java.lang.String message)
          Creates a InvalidRuleSessionException with a given message.
InvalidRuleSessionException(java.lang.String message, java.lang.Exception exception)
          Creates a InvalidRuleSessionException with a given message and nested exception.
 
Methods inherited from class javax.rules.RuleException
getCause, printStackTrace, printStackTrace, printStackTrace, toString
 
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
 

Constructor Detail

InvalidRuleSessionException

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

Parameters:
message - the exception message.

InvalidRuleSessionException

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

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


Copyright © 2004 Java Community Process. All Rights Reserved.