I was curious if anyone knew how to use a try catch in objective c in order to print out a possible NSError received from a synchronousRequest.
The error that I am receiving is due to a non valid memory address. my try catch looks like
@try{
NSLog(@"%@", err);
}@catch(NSException *e){
NSLog(@"No error thrown");
}
The
@catchblock should contain the code that you want to run if there is an error.