cpp-utilities/application/failure.h

27 lines
463 B
C
Raw Permalink Normal View History

#ifndef APPLICATION_UTILITIES_FAILURE_H
#define APPLICATION_UTILITIES_FAILURE_H
2015-04-22 18:36:40 +02:00
#include "../global.h"
2015-04-22 18:36:40 +02:00
#include <exception>
#include <string>
namespace ApplicationUtilities {
class CPP_UTILITIES_EXPORT Failure : public std::exception
2015-04-22 18:36:40 +02:00
{
public:
Failure();
Failure(const std::string &what);
~Failure() USE_NOTHROW;
virtual const char *what() const USE_NOTHROW;
private:
std::string m_what;
};
}
#endif // APPLICATION_UTILITIES_FAILURE_H