Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
827 B

#ifndef CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
#define CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
8 years ago
#include "../global.h"
8 years ago
#include <stdexcept>
#include <string>
namespace ConversionUtilities {
class CPP_UTILITIES_EXPORT ConversionException : public std::runtime_error {
8 years ago
public:
ConversionException() USE_NOTHROW;
ConversionException(const std::string &what) USE_NOTHROW;
ConversionException(const char *what) USE_NOTHROW;
8 years ago
~ConversionException() USE_NOTHROW;
};
/*!
* \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)
{
}
} // namespace ConversionUtilities
8 years ago
#endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H