how to catch fail load service

480
1
Jump to solution
11-21-2012 10:09 AM
HamzaHaroon
Occasional Contributor
how do i catch exceptions for when the service fails to load. my app throws an nsexception if my url is wrong when it tried to load, but it doesnt catch the exception. I am using try and catch blocks.
0 Kudos
1 Solution

Accepted Solutions
RickJones
Occasional Contributor II
Have you tried this?


- (void)mapView:(AGSMapView *)mapView failedLoadingLayerForLayerView:(UIView<AGSLayerView> *)layerView baseLayer:(BOOL)baseLayer withError:(NSError *)error {     NSLog(@"Error loading layer"); }

View solution in original post

0 Kudos
1 Reply
RickJones
Occasional Contributor II
Have you tried this?


- (void)mapView:(AGSMapView *)mapView failedLoadingLayerForLayerView:(UIView<AGSLayerView> *)layerView baseLayer:(BOOL)baseLayer withError:(NSError *)error {     NSLog(@"Error loading layer"); }
0 Kudos