uk.org.ogsadai.engine.controlflow
Class RequestException

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.engine.controlflow.RequestException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RequestSystemException, RequestUserException

public abstract class RequestException
extends EngineException

Parent class for any exceptions raised during construction, initialisation or processing of requests.

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

Field Summary
 
Fields inherited from class uk.org.ogsadai.common.exception.DAIException
mException, mMessageNumber, mParams
 
Constructor Summary
RequestException(DAIException cause, org.apache.log4j.Logger logger)
          Construct a new logged exception with the specified cause.
RequestException(int messageNumber, org.apache.log4j.Logger logger)
          Construct a new logged exception with the specified message number.
RequestException(int messageNumber, java.lang.Throwable cause, org.apache.log4j.Logger logger)
          Construct a new logged exception with the specified cause.
 
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
 

Constructor Detail

RequestException

public RequestException(int messageNumber,
                        org.apache.log4j.Logger logger)
Construct a new logged exception with the specified message number.

Parameters:
messageNumber - the message number describing the cause of the exception
logger - the logger to log the error to

RequestException

public RequestException(int messageNumber,
                        java.lang.Throwable cause,
                        org.apache.log4j.Logger logger)
Construct a new logged exception with the specified cause.

Parameters:
messageNumber - the message number describing the cause of the exception
cause - the exception which caused this exception to be thrown
logger - the logger to log the error to

RequestException

public RequestException(DAIException cause,
                        org.apache.log4j.Logger logger)
Construct a new logged exception with the specified cause. In this case the cause can only be a DAIException and the cause message number will be copied straight into this exception's message number.

Parameters:
cause - the exception which caused this exception to be thrown
logger - the logger to log the error to