#[repr(i32)]pub enum QpdfErrorCode {
Success = 0,
Internal = 1,
System = 2,
Unsupported = 3,
Password = 4,
DamagedPdf = 5,
Pages = 6,
Object = 7,
Json = 8,
Linearization = 9,
}Expand description
The status a QpdfExc carries, readable without parsing its message.
QpdfErrorCode::Success is part of the set, so a code does not by itself
mean a failure.
These values mirror qpdf_error_code_e in include/qpdf/Constants.h:84-95.
The code is deliberately separate from the rendered message: qpdf exposes
both, and callers must not parse what() to recover the classification.
Variants§
Success = 0
No error.
Internal = 1
Logic or programming error (qpdf_e_internal).
System = 2
I/O or other runtime error (qpdf_e_system).
Unsupported = 3
Unsupported PDF feature (qpdf_e_unsupported).
Password = 4
Incorrect password (qpdf_e_password).
DamagedPdf = 5
Malformed or damaged PDF (qpdf_e_damaged_pdf).
Pages = 6
Erroneous or unsupported page structure (qpdf_e_pages).
Object = 7
Object type or bounds error (qpdf_e_object).
Json = 8
JSON error (qpdf_e_json).
Linearization = 9
Linearization warning (qpdf_e_linearization).