cpp-utilities/conversion/conversionexception.cpp

33 lines
761 B
C++
Raw Normal View History

2015-04-22 18:36:40 +02:00
#include "conversionexception.h"
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
*/
/*!
* Constructs a new ConversionException.
*/
ConversionException::ConversionException() USE_NOTHROW :
runtime_error("unable to convert")
{}
/*!
* Constructs a new ConversionException. \a what is a std::string
* describing the cause of the ConversionException.
*/
ConversionException::ConversionException(const std::string &what) USE_NOTHROW :
runtime_error(what)
{}
/*!
* Destroys the ConversionException.
*/
ConversionException::~ConversionException() USE_NOTHROW
{}
}