PoDoFo
0.9.5
|
#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__ ); |
Set the value of the variable eCode (which has to exist in the current function) to x and return the eCode.
#define PODOFO_RAISE_ERROR_INFO | ( | x, | |
y | |||
) | throw ::PoDoFo::PdfError( x, __FILE__, __LINE__, y ); |
Set the value of the variable eCode (which has to exist in the current function) to x and return the eCode. Additionally additional information on the error y is set. 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’ .