00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _TX_DATA_EXCEPTION_H_
00015 #define _TX_DATA_EXCEPTION_H_
00016
00017 #include <string>
00018 #include "StUCMException.h"
00019
00024 class StDataException : public StUCMException {
00025 public:
00030 enum ObjectType {
00031 STORE,
00032 COLLECTION,
00033 RECORD,
00034 FIELD
00035 };
00036
00037 public:
00044 StDataException( const std::string& description,
00045 ObjectType object,
00046 StUCMException::Severity severity = StUCMException::ERROR);
00047
00051 virtual ~StDataException();
00052
00053
00059 ObjectType getObjectType() const;
00060
00061 private:
00067 std::string typeToString() const;
00068
00069 private:
00070 ObjectType object_;
00071 };
00072
00073 #endif