NPIError
Deprecated
Objective-C
@interface NPIError : NSObject
Swift
class NPIError : NSObject
Class that encapsulates information about an error condition. Includes a domain, a domain-specific error code, and localized information.
-
Technical error message which should not be presented directly to customers
Declaration
Objective-C
@property (copy, readonly) NSString *_Nonnull localizedDescription;Swift
var localizedDescription: String { get } -
Declaration
Objective-C
- (instancetype _Nonnull)initWithCode:(NSString *_Nonnull)code;Swift
convenience init(code: String)Parameters
codeNPIErrorCode that best describes the error case
-
Declaration
Objective-C
- (instancetype _Nonnull) initWithCode:(NSString *_Nonnull)code userInfo:(nonnull NSDictionary<NSErrorUserInfoKey, id> *)info;Swift
init(code: String, userInfo info: [String : Any] = [:])Parameters
codeNPIErrorCode that best describes the error case
infoAny useful info that could help better identify the error
-
Undocumented
Declaration
Objective-C
- (_Nonnull instancetype) initWithIntCode:(NPIErrorCode)code userInfo:(nonnull NSDictionary<NSErrorUserInfoKey, id> *)info;Swift
convenience init(intCode code: NPIErrorCode, userInfo info: [String : Any] = [:]) -
Error code
-
Mobile Wallet Error code
Declaration
Objective-C
- (int)getMobileWalletErrorCode;Swift
func getMobileWalletErrorCode() -> Int32
NPIError Class Reference