You can put, um, an error object in there...
Code:
NSError *theError = nil;
NSString* stuff = [NSString stringWithContentsOfUrl:... error: &theError];
if( theError != nil )
{
//oops something went wrong, handle the error
NSLog(@"Error: %@", theError);
}