Browse files

updated error domain name

  • Loading branch information...
1 parent b341c15 commit 64d81b92a706cce8c98aa2ddcf536a29bb0fdad8 Mohammed Jisrawi committed Feb 28, 2011
Showing with 8 additions and 8 deletions.
  1. +4 −4 Classes/MJGeocoder.m
  2. +4 −4 Classes/MJReverseGeocoder.m
View
8 Classes/MJGeocoder.m
@@ -89,19 +89,19 @@ - (void)findLocationsWithAddress:(NSString *)address title:(NSString *)title{
if([status isEqualToString:@"ZERO_RESULTS"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:1 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:1 userInfo:nil];
}
else if([status isEqualToString:@"OVER_QUERY_LIMIT"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:2 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:2 userInfo:nil];
}
else if([status isEqualToString:@"REQUEST_DENIED"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:3 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:3 userInfo:nil];
}
else if([status isEqualToString:@"INVALID_REQUEST"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:4 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:4 userInfo:nil];
}
[delegate geocoder:self didFailWithError:error];
View
8 Classes/MJReverseGeocoder.m
@@ -85,19 +85,19 @@ - (void)start{
if([status isEqualToString:@"ZERO_RESULTS"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:1 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:1 userInfo:nil];
}
else if([status isEqualToString:@"OVER_QUERY_LIMIT"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:2 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:2 userInfo:nil];
}
else if([status isEqualToString:@"REQUEST_DENIED"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:3 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:3 userInfo:nil];
}
else if([status isEqualToString:@"INVALID_REQUEST"])
{
- error = [NSError errorWithDomain:@"FSGeocoderError" code:4 userInfo:nil];
+ error = [NSError errorWithDomain:@"MJGeocoderError" code:4 userInfo:nil];
}
[delegate reverseGeocoder:self didFailWithError:error];

0 comments on commit 64d81b9

Please sign in to comment.