From bb35bd7595564327881f5941d7853e427827f8b9 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Sat, 6 Jan 2007 23:32:27 +0000 Subject: - added simple exception class --- exception.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 exception.h 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 + +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 -- cgit v1.2.3