Error Class Documentation
class Error : runtime_errorNamespace:datalogics_interface
- Inherits from:
runtime_error
Detailed Description
Base class of the exceptions the public API raises for a library failure.
Catch this type to handle any of them. Catch one of the derived types to handle a single kind. std::bad_alloc and the other standard exceptions stay outside this hierarchy, so a handler for this type does not hide them.
Constructor & Destructor Documentation
Error
Error(const std::string & message)Parameters
message: const std::string &
Member Function Documentation
get_error_code
DL_ERROR_MEMBER int get_error_code()Returns:
DL_ERROR_MEMBER intThe Adobe PDF Library error code, or 0 when the failure carries none.
Decode the value with the APDFL ErrGetSeverity, ErrGetSystem and ErrGetCode macros, or compare it against a whole code.