Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Conversion exception. More...
#include <geogram/basic/string.h>
Public Member Functions | |
ConversionError (const std::string &s, const std::string &type) | |
Constructs a conversion exception. More... | |
const char * | what () const GEO_NOEXCEPT override |
Gets the string identifying the exception. | |
Conversion exception.
This exception is thrown by the conversion functions to_bool(), to_int() and to_double() when a string cannot be converted to the desired type.
GEO::String::ConversionError::ConversionError | ( | const std::string & | s, |
const std::string & | type | ||
) |
Constructs a conversion exception.
[in] | s | the input string that could not be converted |
[in] | type | the expected destination type |