uk.org.ogsadai.client.toolkit.activity
Class ActivityException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--uk.org.ogsadai.client.toolkit.exception.DAIException
|
+--uk.org.ogsadai.client.toolkit.activity.ActivityException
- All Implemented Interfaces:
- java.io.Serializable
- public class ActivityException
- extends DAIException
Exception thrown when executing an activity produces an error at the
data service.
- Author:
- The OGSA-DAI Project Team
- See Also:
- Serialized Form
|
Constructor Summary |
ActivityException(java.lang.String activityName,
java.lang.String errorMessage,
java.lang.Throwable exception,
org.apache.log4j.Logger logger)
Constructor. |
|
Method Summary |
java.lang.String |
getActivityName()
Gets the name of the activity that produced the error. |
java.lang.String |
getErrorMessage()
Gets the error message that describes the error. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, 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 |
ActivityException
public ActivityException(java.lang.String activityName,
java.lang.String errorMessage,
java.lang.Throwable exception,
org.apache.log4j.Logger logger)
- Constructor.
- Parameters:
activityName - name of activity that produced the errorerrorMessage - error message describing the errorexception - exception returned by the servicelogger - logger to use for error logging
getActivityName
public java.lang.String getActivityName()
- Gets the name of the activity that produced the error.
- Returns:
- name of activity that produced the error.
getErrorMessage
public java.lang.String getErrorMessage()
- Gets the error message that describes the error.
- Returns:
- error message describing the error.