views:

138

answers:

1

Hi guys,

I am having the method in my view controller as shown below:

- (void)parser:(PaymentTermsLibxmlParser *)parser encounteredError:(NSError *)error
{
    NSLog("error occured");
}

Here I need to show the Actual error message in the NSError in my alert can any one suggest how to get it.

Hope I get Quick response from you guys.

Thanks in advance. Monish.

+4  A: 

Normally you'll want to use [error localizedDescription]. Read the NSError documentation for more options.

For simple logging, you can do NSLog(@"Error: %@", error).

jtbandes