StDataException Class Reference

#include <StDataException.h>

Inheritance diagram for StDataException:

StUCMException

List of all members.

Public Types

enum  ObjectType { STORE, COLLECTION, RECORD, FIELD }

Public Member Functions

 StDataException (const std::string &description, ObjectType object, StUCMException::Severity severity=StUCMException::ERROR)
virtual ~StDataException ()
ObjectType getObjectType () const


Detailed Description

The exception class for all exceptions thrown by the 'base' component of the data tier.

Definition at line 24 of file StDataException.h.


Member Enumeration Documentation

Represents the type of data object where the exception occured.

Definition at line 30 of file StDataException.h.


Constructor & Destructor Documentation

StDataException::StDataException ( const std::string &  description,
ObjectType  object,
StUCMException::Severity  severity = StUCMException::ERROR 
)

Constructor: Provide description and exception severity.

Parameters:
descrption The error message for the exception.
object The type of object on which the exception occured.
severity The severity of the exception. Optional, defaults to ERROR.

Definition at line 15 of file StDataException.cxx.

StDataException::~StDataException (  )  [virtual]

Destructor: No-op.

Definition at line 24 of file StDataException.cxx.


Member Function Documentation

StDataException::ObjectType StDataException::getObjectType (  )  const

Retrieves the type of object where the exception occured. Useful for ignoring all DataExceptions which did not occur on a particular object (i.e. catch StDataExceptions, but ignore any which did not occur on a STORE)

Definition at line 28 of file StDataException.cxx.


The documentation for this class was generated from the following files:

Generated on Sat May 26 04:28:10 2012 for StRoot by  doxygen 1.5.9