StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
StDataException Class Reference

#include <StDataException.h>

Inheritance diagram for StDataException:
StUCMException

Public Types

enum  ObjectType { STORE, COLLECTION, RECORD, FIELD }
 
- Public Types inherited from StUCMException
enum  Severity { WARN, ERROR, FATAL }
 

Public Member Functions

 StDataException (const std::string &description, ObjectType object, StUCMException::Severity severity=StUCMException::ERROR)
 
virtual ~StDataException ()
 
ObjectType getObjectType () const
 
- Public Member Functions inherited from StUCMException
 StUCMException (const std::string &description, Severity severity=ERROR)
 
virtual ~StUCMException ()
 
virtual std::string getDescription () const
 
virtual Severity getSeverity () const
 

Additional Inherited Members

- Protected Member Functions inherited from StUCMException
 StUCMException (Severity severity=ERROR)
 
void setDescription (const std::string &description)
 

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
descrptionThe error message for the exception.
objectThe type of object on which the exception occured.
severityThe 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: