Introduced objectLoaderDidLoadUnexpectedResponse: delegate method for handling odd-ball responses during an object load

This commit is contained in:
Blake Watters
2010-10-20 21:04:20 -04:00
parent bd48ae37db
commit 4427844e07
2 changed files with 20 additions and 5 deletions

View File

@@ -25,6 +25,16 @@
*/
- (void)objectLoader:(RKObjectLoader*)objectLoader didFailWithError:(NSError*)error;
@optional
/**
* Sent when an object loader encounters a response status code it does not know how to handle.
* 2xx, 4xx, and 5xx responses are all handled appropriately. This should only occur when the remote
* service sends back a really odd-ball response.
*
* @optional
*/
- (void)objectLoaderDidLoadUnexpectedResponse:(RKObjectLoader*)objectLoader;
@end
/**