NSError错误userInfo key

155 篇文章 0 订阅
155 篇文章 0 订阅
User info dictionary keys
These keys may exist in the user info dictionary.

NSString * const NSLocalizedDescriptionKey;
NSString * const NSErrorFailingURLStringKey;
NSString * const NSFilePathErrorKey;
NSString * const NSStringEncodingErrorKey;
NSString * const NSUnderlyingErrorKey;
NSString * const NSURLErrorKey;
NSString * const NSLocalizedFailureReasonErrorKey;
NSString * const NSLocalizedRecoverySuggestionErrorKey;
NSString * const NSLocalizedRecoveryOptionsErrorKey;
NSString * const NSRecoveryAttempterErrorKey;
NSString * const NSHelpAnchorErrorKey;
NSString * const NSURLErrorFailingURLErrorKey;
NSString * const NSURLErrorFailingURLStringErrorKey;
NSString * const NSURLErrorFailingURLPeerTrustErrorKey;
Constants
NSLocalizedDescriptionKey
The corresponding value is a localized string representation of the error that, if present, will be returned by localizedDescription.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSErrorFailingURLStringKey
The corresponding value is the URL that caused the error. This key is only present in the NSURLErrorDomain. (Deprecated. This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey.)
This constant is deprecated in OS X v10.6, and is superseded by NSURLErrorFailingURLStringErrorKey. Both constants refer to the same value for backward-compatibility, but the new symbol name has a better prefix.
Available in iOS 2.0 and later.
Deprecated in iOS 4.0.
Declared in NSURLError.h.
NSFilePathErrorKey
Contains the file path of the error.
The corresponding value is an NSString object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSStringEncodingErrorKey
The corresponding value is an NSNumber object containing the NSStringEncoding value.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSUnderlyingErrorKey
The corresponding value is an error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSURLErrorKey
The corresponding value is an NSURL object.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedFailureReasonErrorKey
The corresponding value is a localized string representation containing the reason for the failure that, if present, will be returned by localizedFailureReason.
This string provides a more detailed explanation of the error than the description.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoverySuggestionErrorKey
The corresponding value is a string containing the localized recovery suggestion for the error.
This string is suitable for displaying as the secondary message in an alert panel.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSLocalizedRecoveryOptionsErrorKey
The corresponding value is an array containing the localized titles of buttons appropriate for displaying in an alert panel.
The first string is the title of the right-most and default button, the second the one to the left, and so on. The recovery options should be appropriate for the recovery suggestion returned by localizedRecoverySuggestion.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSRecoveryAttempterErrorKey
The corresponding value is an object that conforms to the NSErrorRecoveryAttempting informal protocol.
The recovery attempter must be an object that can correctly interpret an index into the array returned by recoveryAttempter.
Available in iOS 2.0 and later.
Declared in NSError.h.
NSHelpAnchorErrorKey
The corresponding value is an NSString containing the localized help corresponding to the help button. See helpAnchor for more information.
Available in iOS 4.0 and later.
Declared in NSError.h.
NSURLErrorFailingURLErrorKey
The corresponding value is an NSURL containing the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLStringErrorKey
The corresponding value is an NSString object for the URL which caused a load to fail. This key is only present in the NSURLErrorDomain.
This constant supersedes NSErrorFailingURLStringKey, which was deprecated in OS X v10.6. Both constants refer to the same value for backward-compatibility, but this symbol name has a better prefix.
Available in iOS 4.0 and later.
Declared in NSURLError.h.
NSURLErrorFailingURLPeerTrustErrorKey
The corresponding value is the SecTrustRef object representing the state of a failed SSL handshake. This key is only present in the NSURLErrorDomain.
Available in iOS 3.0 and later.
Declared in NSURLError.h.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值