51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef EXCEPTIONS_HEADER
-#define EXCEPTIONS_HEADER
+#pragma once
#include <exception>
#include <string>
{
public:
BaseException(const std::string &s) throw(): m_s(s) {}
- ~BaseException() throw() {}
+ ~BaseException() throw() = default;
+
virtual const char * what() const throw()
{
return m_s.c_str();
SettingNotFoundException(const std::string &s): BaseException(s) {}
};
-class InvalidFilenameException : public BaseException {
-public:
- InvalidFilenameException(const std::string &s): BaseException(s) {}
-};
-
class ItemNotFoundException : public BaseException {
public:
ItemNotFoundException(const std::string &s): BaseException(s) {}
BaseException(s)
{}
};
-
-#endif
-