diff options
-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 |