PSPDFErrorHandler

Objective-C

@protocol PSPDFErrorHandler<NSObject>

/// All parameters are optional, however you should call it with at least error or title.
///
/// @note The implementing view controller can decide how to best present this.
- (void)handleError:(nullable NSError *)error title:(nullable NSString *)title message:(nullable NSString *)message;

@end

Swift

protocol ErrorHandler : NSObjectProtocol

Undocumented

  • All parameters are optional, however you should call it with at least error or title.

    Note

    The implementing view controller can decide how to best present this.

    Declaration

    Objective-C

    - (void)handleError:(nullable NSError *)error
                  title:(nullable NSString *)title
                message:(nullable NSString *)message;

    Swift

    func handleError(_ error: Error?, title: String?, message: String?)