From 22aa1302d76342c7c4b56b7380734a7f984e7411 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 20 Jan 2010 03:43:31 +0100 Subject: added custom exception classes for better catching them (gotta catch 'em all) --- src/base/song.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/base/song.hpp') diff --git a/src/base/song.hpp b/src/base/song.hpp index d7ed8c98..6009cfa9 100644 --- a/src/base/song.hpp +++ b/src/base/song.hpp @@ -33,9 +33,17 @@ #include #include "bpm.hpp" #include "lyric_line.hpp" +#include "utils/base_exception.hpp" namespace usdx { + class MissingSongTagException : public BaseException + { + public: + MissingSongTagException(std::string message) : BaseException(message) {}; + ~MissingSongTagException () throw () {}; + }; + class Song { private: -- cgit v1.2.3