Add 'const char *' overload to ConversionException

This commit is contained in:
Martchus 2018-03-11 22:36:59 +01:00
parent 19332033ec
commit 7b974a1b1d
1 changed files with 10 additions and 0 deletions

View File

@ -12,8 +12,18 @@ class CPP_UTILITIES_EXPORT ConversionException : public std::runtime_error {
public: public:
ConversionException() USE_NOTHROW; ConversionException() USE_NOTHROW;
ConversionException(const std::string &what) USE_NOTHROW; ConversionException(const std::string &what) USE_NOTHROW;
ConversionException(const char *what) USE_NOTHROW;
~ConversionException() USE_NOTHROW; ~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 } // namespace ConversionUtilities
#endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H #endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H