2016-06-11 19:09:14 +02:00
|
|
|
#ifndef APPLICATION_UTILITIES_FAILURE_H
|
|
|
|
#define APPLICATION_UTILITIES_FAILURE_H
|
2015-04-22 18:36:40 +02:00
|
|
|
|
2016-08-29 15:35:48 +02:00
|
|
|
#include "../global.h"
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ApplicationUtilities {
|
|
|
|
|
2016-08-29 15:35:48 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-06-11 19:09:14 +02:00
|
|
|
#endif // APPLICATION_UTILITIES_FAILURE_H
|