1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef HRException_INCLUDED
- #define HRException_INCLUDED
- #include <kopano/zcdefs.h>
- #include <stdexcept>
- namespace KC {
- class _kc_export_throw HrException _kc_final : public std::runtime_error {
- public:
- HrException(HRESULT hr, const std::string &message = std::string()): std::runtime_error(message), m_hr(hr) {}
- HRESULT hr() const { return m_hr; }
- private:
- HRESULT m_hr;
- };
- }
- #endif
|