mirror of https://github.com/oxen-io/session-ios
parent
5ae2717872
commit
c1a0b88232
@ -0,0 +1,9 @@
|
|||||||
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
extern NSString *const OWSSignalServiceKitErrorDomain;
|
||||||
|
|
||||||
|
extern NSError *OWSErrorWithCodeDescription(NSInteger code, NSString *description);
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
||||||
|
|
||||||
|
#import "OWSError.h"
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
|
NSString *const OWSSignalServiceKitErrorDomain = @"OWSSignalServiceKitErrorDomain";
|
||||||
|
|
||||||
|
NSError *OWSErrorWithCodeDescription(NSInteger code, NSString *description)
|
||||||
|
{
|
||||||
|
return [NSError errorWithDomain:OWSSignalServiceKitErrorDomain
|
||||||
|
code:code
|
||||||
|
userInfo:@{ NSLocalizedDescriptionKey: description }];
|
||||||
|
}
|
||||||
|
|
||||||
|
NS_ASSUME_NONNULL_END
|
Loading…
Reference in New Issue