diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-06 23:32:27 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-06 23:32:27 +0000 |
commit | bb35bd7595564327881f5941d7853e427827f8b9 (patch) | |
tree | 32508782ae2dc62d9b50f653e8bb6c7628efc47b /exception.h | |
parent | 61588887f4a8ea546188b95ddbb5785a816c3643 (diff) | |
download | vdr-plugin-live-bb35bd7595564327881f5941d7853e427827f8b9.tar.gz vdr-plugin-live-bb35bd7595564327881f5941d7853e427827f8b9.tar.bz2 |
- added simple exception class
Diffstat (limited to 'exception.h')
-rw-r--r-- | exception.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/exception.h b/exception.h new file mode 100644 index 0000000..183ba8c --- /dev/null +++ b/exception.h @@ -0,0 +1,24 @@ +#ifndef VDR_LIVE_EXCEPTION_H +#define VDR_LIVE_EXCEPTION_H + +#include <stdexcept> + +namespace vdrlive { + +class HtmlError: public std::runtime_error +{ +public: + HtmlError( std::string const& title, std::string const& message ): std::runtime_error( message ), m_title( title ), m_message( message ) {} + virtual ~HtmlError() throw() {} + + std::string const& GetTitle() const { return m_title; } + std::string const& GetMessage() const { return m_message; } + +private: + std::string m_title; + std::string m_message; +}; + +} // namespace vdrlive + +#endif // VDR_LIVE_EXCEPTION_H |