diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-28 16:58:07 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-28 16:58:07 +0200 |
commit | b08d5c2cf630ecb89d2f22b985dcdfcf25494258 (patch) | |
tree | ee82443154010e6e2c73291192b574dda9eb6b7e /inc/ABRTException.h | |
parent | 68ba4945437e12eaa1dead6df27b58ea408f63e8 (diff) | |
download | abrt-b08d5c2cf630ecb89d2f22b985dcdfcf25494258.tar.gz abrt-b08d5c2cf630ecb89d2f22b985dcdfcf25494258.tar.xz abrt-b08d5c2cf630ecb89d2f22b985dcdfcf25494258.zip |
moved files to new inc directory
removed commlayerinner from lybrary
Diffstat (limited to 'inc/ABRTException.h')
-rw-r--r-- | inc/ABRTException.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/inc/ABRTException.h b/inc/ABRTException.h new file mode 100644 index 00000000..730faf3b --- /dev/null +++ b/inc/ABRTException.h @@ -0,0 +1,35 @@ +#ifndef ABRTEXCEPTION_H_ +#define ABRTEXCEPTION_H_ + +#include <string> + +typedef enum {EXCEP_UNKNOW, + EXCEP_DD_OPEN, + EXCEP_DD_LOAD, + EXCEP_DD_SAVE, + EXCEP_DD_DELETE, + EXCEP_DL, + EXCEP_PLUGIN, + EXCEP_ERROR, + EXCEP_FATAL} abrt_exception_t; + +class CABRTException : public std::exception +{ + private: + std::string m_sWhat; + abrt_exception_t m_Type; + public: + virtual ~CABRTException() throw() {} + CABRTException(const abrt_exception_t& pType, const char* pWhat) : + m_sWhat(pWhat), + m_Type(pType) + {} + CABRTException(const abrt_exception_t& pType, const std::string& pWhat) : + m_sWhat(pWhat), + m_Type(pType) + {} + abrt_exception_t type() { return m_Type; } + std::string what() { return m_sWhat; } +}; + +#endif /* ABRTEXCEPTION_H_ */ |