#ifndef USATA_EXCEPTION_TYPES_HPP #define USATA_EXCEPTION_TYPES_HPP #include #include namespace usata { class RecoverableError : public std::runtime_error { public: RecoverableError(const std::string& w=""):std::runtime_error(w) {} virtual ~RecoverableError()throw(){} }; class FatalError : public std::exception { std::string what_; public: FatalError(const std::string&w):what_(w){}; virtual const char*what()const throw()=0; virtual ~FatalError()throw(){} }; } #endif