![]() | |
| |
CImgException Struct Reference Instances of Inherits exception. Inherited by CImgArgumentException, CImgDisplayException, CImgInstanceException, CImgIOException, and CImgWarningException.
Detailed DescriptionInstances of
CImgException is the base class of all exceptions thrown by
It is not recommended to throw CImgException instances by yourself, since they are expected to be thrown only by
In all cases, when an error occurs in #define "CImg.h"
using namespace cimg_library;
int main() {
cimg::exception_mode(0); // Enable quiet exception mode
try {
... // Here, do what you want to stress CImg
... // Do what you want now to save the ship!
}
}
Instances of CImgException are thrown when errors are encountered in a CImg function call. Definition: CImg.h:2559 const char * what() const Return a C-string containing the error message associated to the thrown exception. Definition: CImg.h:2595 |
Copyrights (C) From october 2004, David Tschumperlé - GREYC UMR CNRS 6072, Image team. Copyrights (C) January->September 2004, David Tschumperlé. Copyrights (C) 2000->2003, David Tschumperlé - INRIA Sophia-Antipolis. Odyssée group. |