22 #ifndef SIRIUS_GDAL_EXCEPTION_H_ 23 #define SIRIUS_GDAL_EXCEPTION_H_ 27 #include <cpl_error.h> 45 Exception(CPLErr level, CPLErrorNum code);
52 const char*
what()
const noexcept
override;
56 ::CPLErrorNum err_code_;
57 std::string default_err_msg_;
63 #endif // SIRIUS_GDAL_EXCEPTION_H_ Base class for sirius exceptions.
Definition: exception.h:32
Definition: exception.h:27
Exception & operator=(const Exception &)=default
Exception()
Automatically extract GDAL error level and code from last GDAL error.
const char * what() const noexcept override
Exception wrapper for GDAL error.
Definition: exception.h:37