StRoot
1
|
#include <StDataException.h>
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) |
The exception class for all exceptions thrown by the 'base' component of the data tier.
Definition at line 24 of file StDataException.h.
Represents the type of data object where the exception occured.
Definition at line 30 of file StDataException.h.
StDataException::StDataException | ( | const std::string & | description, |
ObjectType | object, | ||
StUCMException::Severity | severity = StUCMException::ERROR |
||
) |
Constructor: Provide description and exception severity.
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.
|
virtual |
Destructor: No-op.
Definition at line 24 of file StDataException.cxx.
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.