summaryrefslogtreecommitdiff
path: root/exception.h
blob: 183ba8c24c91125f05bde266dd8f1cd3f650ba7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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