#ifndef INCLUDE_SF_EXCEPTION_HPP
#define INCLUDE_SF_EXCEPTION_HPP
#include <stdexcept>
#include <string>
namespace SF {
// Generic exception class - all exceptions thrown by SF must derive from it
class Exception : public std::runtime_error
{
public:
Exception(std::string msg = "Unspecified") : std::runtime_error(""), msg_(msg) {}
~Exception() throw() {}
const char *what() const throw() { return msg_.c_str(); }
private:
std::string msg_;
};
} // namespace SF
#endif // ! INCLUDE_SF_EXCEPTION_HPP