uk.org.ogsadai.common.exception.engine.activity
Class ActivityException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.common.exception.DAIException
                    |
                    +--uk.org.ogsadai.common.exception.engine.EngineException
                          |
                          +--uk.org.ogsadai.common.exception.engine.activity.ActivityException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivitySystemException, ActivityUserException

public abstract class ActivityException
extends EngineException

An exception which indicates an error condition which has arisen whilst executing an activity.

Sub-types of this exception may only be raised from within activity implementation classes' constructors and processBlock() methods. Moreover, sub-types of this exception are the only exceptions which activity implementation classes' constructors and processBlock() methods are permitted to throw.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
protected  java.lang.String mActivityName
          The name of the activity which threw the exception.
 
Fields inherited from class uk.org.ogsadai.common.exception.DAIException
mException, mMessageNumber, mParams
 
Constructor Summary
ActivityException(java.lang.String activityName, int num, java.lang.Object[] params)
          Construct a new activity exception, using a specified message from the message bundle.
ActivityException(java.lang.String activityName, int num, java.lang.Object[] params, java.lang.Throwable ex)
          Construct a new activity exception, using a specified message from the message bundle, supplying an exception which caused this exception to be thrown.
 
Method Summary
 java.lang.String getActivityName()
          Return the name of the activity that raised the exception.
 
Methods inherited from class uk.org.ogsadai.common.exception.DAIException
getException, getLocalizedMessage, getMessageNumber, getParams, stackTraceToString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Field Detail

mActivityName

protected final java.lang.String mActivityName
The name of the activity which threw the exception.

Constructor Detail

ActivityException

public ActivityException(java.lang.String activityName,
                         int num,
                         java.lang.Object[] params)
Construct a new activity exception, using a specified message from the message bundle.

Parameters:
activityName - the name of the activity that caused the exception
num - the index of the message in the message bundle
params - the parameters to substitute into the message, or null if the message expects no parameters

ActivityException

public ActivityException(java.lang.String activityName,
                         int num,
                         java.lang.Object[] params,
                         java.lang.Throwable ex)
Construct a new activity exception, using a specified message from the message bundle, supplying an exception which caused this exception to be thrown.

Parameters:
activityName - the name of the activity that caused the exception
num - the index of the message in the message bundle
params - the parameters to substitute into the message, or null if the message expects no parameters
ex - the exception which caused this exception to be thrown
Method Detail

getActivityName

public java.lang.String getActivityName()
Return the name of the activity that raised the exception.

Returns:
the name of the activity as a String