PTPDFNetExceptionToError

extern NSError *_Nonnull PTPDFNetExceptionToError(
    PTPDFNetException *_Nonnull exception)

Creates a new NSError object from a PTPDFNetException.