2015-04-29 15:50:57 -04:00
|
|
|
#ifndef ISAAC_EXCEPTION_OPERATION_NOT_SUPPORTED_H
|
|
|
|
#define ISAAC_EXCEPTION_OPERATION_NOT_SUPPORTED_H
|
2015-01-12 13:20:53 -05:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <exception>
|
|
|
|
|
2015-08-05 11:13:49 -07:00
|
|
|
#include "isaac/defines.h"
|
|
|
|
|
2015-04-29 15:50:57 -04:00
|
|
|
namespace isaac
|
2015-01-12 13:20:53 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
/** @brief Exception for the case the generator is unable to deal with the operation */
|
2015-08-05 11:13:49 -07:00
|
|
|
DISABLE_MSVC_WARNING_C4275
|
2015-01-12 13:20:53 -05:00
|
|
|
class operation_not_supported_exception : public std::exception
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
operation_not_supported_exception();
|
|
|
|
operation_not_supported_exception(std::string message);
|
|
|
|
virtual const char* what() const throw();
|
|
|
|
virtual ~operation_not_supported_exception() throw();
|
|
|
|
private:
|
2015-08-05 11:13:49 -07:00
|
|
|
DISABLE_MSVC_WARNING_C4251
|
2015-01-12 13:20:53 -05:00
|
|
|
std::string message_;
|
2015-08-05 11:13:49 -07:00
|
|
|
RESTORE_MSVC_WARNING_C4251
|
2015-01-12 13:20:53 -05:00
|
|
|
};
|
2015-08-05 11:13:49 -07:00
|
|
|
RESTORE_MSVC_WARNING_C4275
|
2015-01-12 13:20:53 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|