Database Reference
In-Depth Information
Note
Earlier, AWS SDKs used to throw exceptions if any issue came up with the invoked re-
quest. This forced developers to surround any code written for AWS with try/catch blocks,
which was a nasty thing. So, in order to avoid this, AWS started providing error codes
with NSError or NSException . So, with this approach, if any error occurs, the AWS
SDK sets it in an error property. Hence, it is recommended to check an error property to
nil before continuing with the next code. If required, we can also enable the exception
back.
You can read more about exception handling in iOS at http://mobile.awsblog.com/post/
Tx2PZV371MJJHUG/How-Not-to-Throw-Exceptions-with-the-AWS-SDK-for-iOS
Search WWH ::




Custom Search