2015-09-06 20:19:09 +02:00
|
|
|
#include "./conversionexception.h"
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
namespace ConversionUtilities {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \class ConversionUtilities::ConversionException
|
2015-07-18 01:11:12 +02:00
|
|
|
* \brief The ConversionException class is thrown by the various conversion
|
|
|
|
* functions of this library when a conversion error occurs.
|
2015-04-22 18:36:40 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
2016-01-18 23:41:30 +01:00
|
|
|
* \brief Constructs a new ConversionException.
|
2015-04-22 18:36:40 +02:00
|
|
|
*/
|
2017-05-01 03:13:11 +02:00
|
|
|
ConversionException::ConversionException() USE_NOTHROW : runtime_error("unable to convert")
|
|
|
|
{
|
|
|
|
}
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
/*!
|
2016-01-18 23:41:30 +01:00
|
|
|
* \brief Constructs a new ConversionException. \a what is a std::string
|
|
|
|
* describing the cause of the ConversionException.
|
2015-04-22 18:36:40 +02:00
|
|
|
*/
|
2017-05-01 03:13:11 +02:00
|
|
|
ConversionException::ConversionException(const std::string &what) USE_NOTHROW : runtime_error(what)
|
|
|
|
{
|
|
|
|
}
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
/*!
|
2016-01-18 23:41:30 +01:00
|
|
|
* \brief Destroys the ConversionException.
|
2015-04-22 18:36:40 +02:00
|
|
|
*/
|
|
|
|
ConversionException::~ConversionException() USE_NOTHROW
|
2017-05-01 03:13:11 +02:00
|
|
|
{
|
|
|
|
}
|
2017-09-17 21:45:23 +02:00
|
|
|
} // namespace ConversionUtilities
|