javax.slee
Class UnrecognizedActivityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.slee.SLEEException
                  extended by javax.slee.UnrecognizedActivityException
All Implemented Interfaces:
java.io.Serializable

public class UnrecognizedActivityException
extends SLEEException

This exception is thrown if the activity object supplied to an activity context interface factory method is not an activity generated by a resource adaptor installed in the SLEE. For example, an activity object directly instantiated by an SBB via new <type>(...) would raise an UnrecognizedActivityException if given to an activity context interface factory method.

As of SLEE 1.1 this class extends SLEEException instead of Exception.

See Also:
Serialized Form

Constructor Summary
UnrecognizedActivityException(java.lang.Object activity)
          Create an UnrecognizedActivityException with no detail message.
UnrecognizedActivityException(java.lang.String message, java.lang.Object activity)
          Create an UnrecognizedActivityException with a detail message.
 
Method Summary
 java.lang.Object getActivity()
          Get the activity that was unrecognized.
 
Methods inherited from class javax.slee.SLEEException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnrecognizedActivityException

public UnrecognizedActivityException(java.lang.Object activity)
Create an UnrecognizedActivityException with no detail message.

Parameters:
activity - the unrecognized activity.

UnrecognizedActivityException

public UnrecognizedActivityException(java.lang.String message,
                                     java.lang.Object activity)
Create an UnrecognizedActivityException with a detail message.

Parameters:
message - the detail message
activity - the unrecognized activity.
Method Detail

getActivity

public final java.lang.Object getActivity()
Get the activity that was unrecognized.

Returns:
the activity that was unrecognized.


Copyright © 2009. All Rights Reserved.