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