C++ Utilities  4.6.1
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
conversionexception.h
Go to the documentation of this file.
1 #ifndef CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
2 #define CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
3 
4 #include "../global.h"
5 
6 #include <stdexcept>
7 #include <string>
8 
9 namespace ConversionUtilities {
10 
11 class CPP_UTILITIES_EXPORT ConversionException : public std::runtime_error
12 {
13 public:
15  ConversionException(const std::string &what) USE_NOTHROW;
17 };
18 
19 }
20 
21 #endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
The ConversionException class is thrown by the various conversion functions of this library when a co...
#define USE_NOTHROW
Marks a function as never throwing, under no circumstances.
Definition: global.h:97
Contains several functions providing conversions between different data types.
#define CPP_UTILITIES_EXPORT
Marks the symbol to be exported by the c++utilities library.