uk.org.ogsadai.common.exception.engine
Class EngineException

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

public abstract class EngineException
extends DAIException

An exception which indicates an error condition which has arisen in the Enactment Engine.

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
EngineException(DAIException cause, org.apache.log4j.Logger logger)
          Construct a new logged exception with the specified cause.
EngineException(int messageNumber, org.apache.log4j.Logger logger)
          Construct a new logged exception with the specified message number.
EngineException(int num, java.lang.Object[] params)
          Construct a new engine exception, using a specified message from the message bundle.
EngineException(int num, java.lang.Object[] params, java.lang.Throwable ex)
          Construct a new engine exception, using a specified message from the message bundle, supplying an exception which caused this exception to be thrown.
EngineException(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

EngineException

public EngineException(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

EngineException

public EngineException(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

EngineException

public EngineException(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

EngineException

public EngineException(int num,
                       java.lang.Object[] params)
Construct a new engine exception, using a specified message from the message bundle.

Parameters:
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

EngineException

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

Parameters:
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