PDFlibErrorCategory

Error handling

Description

PDFlibErrorCategory maps a numeric error code to its family as a TPDFlibErrorCategory value

Use it to branch on the kind of failure, for example retry an authentication category or surface a validation category, without string matching on PDFlibErrorMessage text

Syntax

Delphi

Function PDFlibErrorCategory(Code: Integer): TPDFlibErrorCategory;

Fields

CodeThe numeric error code to classify

Return value

The TPDFlibErrorCategory the code belongs to

See also

TPDFlibErrorCategory, PDFlibErrorMessage, LastErrorCode