Select to view content in your preferred language

how to catch fail load service

671
1
Jump to solution
11-21-2012 10:09 AM
HamzaHaroon
Regular 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
Deactivated User
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
Deactivated User
Have you tried this?


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