uk.org.ogsadai.client.toolkit.exception
Class DAIException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.client.toolkit.exception.DAIException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActivityConfigurationException, ActivityException, ActivityOutputException, DataFormatException, DocumentParsingException, InvalidPropertyNameException, RequestStatusException, ServerException, ServiceCommsException, ServiceTerminationException, UserException

public class DAIException
extends java.lang.Exception

This is the parent exception for all exceptions except the InternalException thrown by the OGSA-DAI client toolkit code. If a client toolkit method throws multiple exceptions, and the client application intends to treat each case in the same way, then this form can be used to generalise a catch statement.

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

Constructor Summary
DAIException(java.lang.String message)
          Constructs a new exception with the specified description String.
DAIException(java.lang.String message, org.apache.log4j.Logger logger)
          Constructs a new exception with the specified description String and logs an error specifying the concrete Exception class and description string using the specified Logger.
DAIException(java.lang.String message, java.lang.Throwable cause, org.apache.log4j.Logger logger)
          Constructs a new exception with the specified description String and logs an error specifying the concrete Exception class and description string using the specified Logger.
 
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
 

Constructor Detail

DAIException

public DAIException(java.lang.String message)
Constructs a new exception with the specified description String.

Parameters:
message - String describing the error.

DAIException

public DAIException(java.lang.String message,
                    org.apache.log4j.Logger logger)
Constructs a new exception with the specified description String and logs an error specifying the concrete Exception class and description string using the specified Logger.

Parameters:
message - String describing the error.
logger - Logger to use for error logging.

DAIException

public DAIException(java.lang.String message,
                    java.lang.Throwable cause,
                    org.apache.log4j.Logger logger)
Constructs a new exception with the specified description String and logs an error specifying the concrete Exception class and description string using the specified Logger.

Parameters:
message - String describing the error.
cause - The cause of the exception. A null value is permitted, and indicates that the cause is nonexistent or unknown.
logger - Logger to use for error logging.