2016-06-11 19:09:14 +02:00
|
|
|
#ifndef CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
|
|
|
|
#define CONVERSION_UTILITIES_CONVERSIONEXCEPTION_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 <stdexcept>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ConversionUtilities {
|
|
|
|
|
2017-05-01 03:13:11 +02:00
|
|
|
class CPP_UTILITIES_EXPORT ConversionException : public std::runtime_error {
|
2015-04-22 18:36:40 +02:00
|
|
|
public:
|
|
|
|
ConversionException() USE_NOTHROW;
|
|
|
|
ConversionException(const std::string &what) USE_NOTHROW;
|
2018-03-11 22:36:59 +01:00
|
|
|
ConversionException(const char *what) USE_NOTHROW;
|
2015-04-22 18:36:40 +02:00
|
|
|
~ConversionException() USE_NOTHROW;
|
|
|
|
};
|
2018-03-11 22:36:59 +01:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Constructs a new ConversionException. \a what is a C-style string
|
|
|
|
* describing the cause of the ConversionException.
|
|
|
|
*/
|
|
|
|
inline ConversionException::ConversionException(const char *what) USE_NOTHROW : std::runtime_error(what)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-09-17 21:45:23 +02:00
|
|
|
} // namespace ConversionUtilities
|
2015-04-22 18:36:40 +02:00
|
|
|
|
2016-06-11 19:09:14 +02:00
|
|
|
#endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
|