pEpObjCAdapter/NSError+PEP.h
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 831 32f7a0c78c10
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
     1 //
     2 //  NSError+PEP.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 20.02.18.
     6 //  Copyright © 2018 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "pEpEngine.h"
    12 
    13 /**
    14  Extension for creating `NSError`s from `PEP_STATUS`
    15  */
    16 @interface NSError (Extension)
    17 
    18 /**
    19  A possible string representation of the error code if this is a pEp error.
    20  @return A string representation of the pEp error code, if it's in the pEp domain.
    21  */
    22 - (NSString * _Nullable)pEpErrorString;
    23 
    24 @end