cinder/Cinder — pull request #248 by reakinator (2012-11-21 21:20:46+00:00)
Title: Url exception throwing in Cocoa

This allows you to gracefully handle loadUrl errors:

```
try {
XmlTree xml( loadUrl( "www.badurl.com/doesntwork" ) );
} catch ( UrlLoadExc& exc ) {
console() << "loadUrl failed. code: " << exc.statusCode() << ", description: " << exc.what() << endl;
return;
}
```

This would report an error from the NSURLConnection. If the server had reported an error, like say 404, you'd get something like:

"loadUrl failed. code: 404, description: HTTP error: not found"

Only implemented for Cocoa / CocoaTouch so far.