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

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
                                |
                                +--uk.org.ogsadai.common.exception.engine.activity.ActivitySystemException
All Implemented Interfaces:
java.io.Serializable

public class ActivitySystemException
extends ActivityException

An exception which indicates an unrecoverable error condition which has arisen whilst executing an activity, which is due to an implementation error rather than user error.

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

Field Summary
 
Fields inherited from class uk.org.ogsadai.common.exception.engine.activity.ActivityException
mActivityName
 
Fields inherited from class uk.org.ogsadai.common.exception.DAIException
mException, mMessageNumber, mParams
 
Constructor Summary
ActivitySystemException(java.lang.String activityName, DAIException e, org.apache.log4j.Logger logger)
          Construct a new activity exception, to be generated from an existing DAIException.
ActivitySystemException(java.lang.String activityName, int num, org.apache.log4j.Logger logger)
          Construct a new activity exception, using a specified message from the message bundle.
ActivitySystemException(java.lang.String activityName, int num, java.lang.Object[] params, org.apache.log4j.Logger logger)
          Construct a new activity exception, using a specified message from the message bundle.
ActivitySystemException(java.lang.String activityName, int num, java.lang.Object[] params, java.lang.Throwable ex, org.apache.log4j.Logger logger)
          Construct a new activity exception, using a specified message from the message bundle, supplying an exception which caused this exception to be thrown.
ActivitySystemException(java.lang.String activityName, int num, java.lang.Throwable ex, org.apache.log4j.Logger logger)
          Construct a new activity exception, using a specified message from the message bundle, supplying an exception which caused this exception to be thrown.
ActivitySystemException(java.lang.String activityName, java.lang.String message, org.apache.log4j.Logger logger)
          Construct a new activity exception for the specified activity with the specified message string.
ActivitySystemException(java.lang.String activityName, java.lang.String message, java.lang.Throwable cause, org.apache.log4j.Logger logger)
          Construct a new activity exception for the specified activity with the specified message string.
 
Method Summary
 java.lang.String toString()
          Returns the error message, in the language of the server which raised the error.
 
Methods inherited from class uk.org.ogsadai.common.exception.engine.activity.ActivityException
getActivityName
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               java.lang.String message,
                               org.apache.log4j.Logger logger)
Construct a new activity exception for the specified activity with the specified message string.

Parameters:
activityName - the name of the activity which threw this exception
message - the message string describing the cause of the exception
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               java.lang.String message,
                               java.lang.Throwable cause,
                               org.apache.log4j.Logger logger)
Construct a new activity exception for the specified activity with the specified message string.

Parameters:
activityName - the name of the activity which threw this exception
message - the message string describing the cause of the exception
cause - the exception which caused this exception to be thrown
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               int num,
                               java.lang.Object[] params,
                               org.apache.log4j.Logger logger)
Construct a new activity exception, using a specified message from the message bundle.

Parameters:
activityName - the name of the activity which threw this 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
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               int num,
                               org.apache.log4j.Logger logger)
Construct a new activity exception, using a specified message from the message bundle.

Parameters:
activityName - the name of the activity which threw this exception
num - the index of the message in the message bundle
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               int num,
                               java.lang.Object[] params,
                               java.lang.Throwable ex,
                               org.apache.log4j.Logger logger)
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 which threw this 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
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               int num,
                               java.lang.Throwable ex,
                               org.apache.log4j.Logger logger)
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 which threw this exception
num - the index of the message in the message bundle
ex - the exception which caused this exception to be thrown
logger - the logger to log the error to

ActivitySystemException

public ActivitySystemException(java.lang.String activityName,
                               DAIException e,
                               org.apache.log4j.Logger logger)
Construct a new activity exception, to be generated from an existing DAIException.

Parameters:
activityName - the name of the activity which threw this exception
e - the OGSA-DAI exception to convert to an ActivitySystemException
logger - the logger to log the error to
Method Detail

toString

public java.lang.String toString()
Returns the error message, in the language of the server which raised the error.

Overrides:
toString in class java.lang.Throwable
Returns:
a string representation of this exception