PoDoFo
0.9.6
|
#include "podofoapi.h"
#include <string>
#include <queue>
#include <cstdarg>
Classes | |
class | PoDoFo::PdfError |
Namespaces | |
PoDoFo | |
Macros | |
#define | PODOFO_RAISE_ERROR(x) throw ::PoDoFo::PdfError( x, __FILE__, __LINE__ ); |
#define | PODOFO_RAISE_ERROR_INFO(x, y) throw ::PoDoFo::PdfError( x, __FILE__, __LINE__, y ); |
#define | PODOFO_RAISE_LOGIC_IF(x, y) { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); }; |
Error information and logging is implemented in this file.
#define PODOFO_RAISE_ERROR | ( | x | ) | throw ::PoDoFo::PdfError( x, __FILE__, __LINE__ ); |
Throw an exception of type PdfError with the error code x, which should be one of the values of the enum EPdfError. File and line info are included.
#define PODOFO_RAISE_ERROR_INFO | ( | x, | |
y | |||
) | throw ::PoDoFo::PdfError( x, __FILE__, __LINE__, y ); |
Throw an exception of type PdfError with the error code x, which should be one of the values of the enum EPdfError. File and line info are included. Additionally extra information on the error, y is set, which will also be output by PdfError::PrintErrorMsg(). y can be a C string, but can also be a C++ std::string.
#define PODOFO_RAISE_LOGIC_IF | ( | x, | |
y | |||
) | { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); }; |
Evaluate ‘x’ as a binary predicate and if it is true, raise a logic error with the info string ‘y’ .