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

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

public class ActivityAuthorisationException
extends ActivityUserException

An exception which indicates that a client-caused authorisation problem has arisen during an activity.

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
ActivityAuthorisationException(java.lang.String activityName, AuthorisationException e, org.apache.log4j.Logger logger)
          Construct a new activity authorisation exception for the specified activity.
ActivityAuthorisationException(java.lang.String activityName, int num, AuthorisationException e, org.apache.log4j.Logger logger)
          Construct a new activity authorisation exception for the specified activity.
ActivityAuthorisationException(java.lang.String activityName, int num, java.lang.Object[] params, AuthorisationException e, org.apache.log4j.Logger logger)
          Construct a new activity authorisation exception for the specified activity.
ActivityAuthorisationException(java.lang.String activityName, java.lang.String message, AuthorisationException e, org.apache.log4j.Logger logger)
          Construct a new activity authorisation exception for the specified activity.
 
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

ActivityAuthorisationException

public ActivityAuthorisationException(java.lang.String activityName,
                                      AuthorisationException e,
                                      org.apache.log4j.Logger logger)
Construct a new activity authorisation exception for the specified activity.

Parameters:
activityName - the name of the activity which threw this exception
e - AuthorisationException that was thrown.
logger - the logger to log the error to

ActivityAuthorisationException

public ActivityAuthorisationException(java.lang.String activityName,
                                      java.lang.String message,
                                      AuthorisationException e,
                                      org.apache.log4j.Logger logger)
Construct a new activity authorisation exception for the specified activity.

Parameters:
activityName - the name of the activity which threw this exception
message - the message string describing the cause of the exception
e - AuthorisationException that was thrown.
logger - the logger to log the error to

ActivityAuthorisationException

public ActivityAuthorisationException(java.lang.String activityName,
                                      int num,
                                      AuthorisationException e,
                                      org.apache.log4j.Logger logger)
Construct a new activity authorisation exception for the specified activity.

Parameters:
activityName - the name of the activity which threw this exception
num - the index of the message in the message bundle
e - AuthorisationException that was thrown.
logger - the logger to log the error to

ActivityAuthorisationException

public ActivityAuthorisationException(java.lang.String activityName,
                                      int num,
                                      java.lang.Object[] params,
                                      AuthorisationException e,
                                      org.apache.log4j.Logger logger)
Construct a new activity authorisation exception for the specified activity.

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
e - AuthorisationException that was thrown.
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 ActivityUserException
Returns:
a string representation of this exception