NSError and NSException
来源:互联网 发布:中国青年网络微博 编辑:程序博客网 时间:2024/06/09 16:39
NSError
is designed for non-fatal, recoverable errors. The problems that are designed to be captured by an NSError
are often user errors (or are errors that can be presented to the user), can often be recovered from (hence -presentError:
and NSErrorRecoveryAttempting
), and are usually expected or predictable errors (like trying to open a file that you don't have access to, or trying to convert between incompatible string encodings).
NSException
is designed for potentially fatal, programmer errors. These errors are designed to signify potential flaws in your application where you have not correctly checked the pre-conditions for performing some operations (like trying to access an array index that is beyond its bounds, or attempts to mutate an immutable object). The introduction to the Exception Programming Guide explains this a little bit
- NSError and NSException
- NSError && NSException
- NSError和NSException区别
- NSError和NSException的几点说明
- NSException
- NSError
- NSError
- NSError
- NSError
- NSError使用
- NSError错误信息
- 错误信息 NSError
- 错误信息 NSError
- 错误信息 NSError
- NSError详解
- 错误信息 NSError
- 关于NSError
- NSError errorcode
- hdu 1029
- 解决Gallery与viewpager滑动冲突问题
- Sum of xor
- RHCE中ACL权限
- Android adb.exe程序启动不起来
- NSError and NSException
- 2 Manipulating the Pixels
- 关于winXP和win7,vs2010,opencv2.3,运行程序,报错“计算机丢失tbb_debug.dll”问题解决办法
- Python Performance Tips, Part 2 - Python Performance 3 of n
- tomcat 安装版本jvm设置
- log4xx/log4j异步日志配置示例
- 我的第一个博客网站是csdn
- GestureDetector类及其用法
- maven学习笔记(一)hello world