Debugging Runtime Error and Performance Analysis

To handle occurrences of exceptions and special conditions that change the normal flow of the program execution, error handling has to be done appropriately.

The following code illustrates how you handle errors for asynchronous requests.
-(void)requestFailed:(ODPRequest*)request
{NSError* error = [request error];
NSInteger errorCode = [error code];
NSString* errorDesc = [error description];
}