Added/Renamed the exceptions, that are thrown, if the rate-limit is exceeded
[facebook-errors] / src / main / java / de / juplo / facebook / errors / GraphApiException.java
index 53f075e..53bbbe6 100644 (file)
@@ -65,11 +65,12 @@ public class GraphApiException extends RuntimeException
       // 1..99: general errors
       case 1:     return new UnknownErrorException(error);
       case 2:     return new UnexpectedErrorException(error);
-      case 4:     return new TooManyAppCallsException(error);
+      case 4:     return new ApplicationRequestLimitReachedException(error);
       case 10:    return new AuthorizationMissingException(error);
       case 12:    return new DeprecatedException(error);
-      case 17:    return new TooManyUserCallsException(error);
+      case 17:    return new AccountRequestLimitReachedException(error);
       case 21:    return new PageMigratedException(error);
+      case 32:    return new PageRequestLimitReachedException(error);
       // 100..199: graph method errors
       case 100:   return new UnsupportedGetRequestException(error);
       case 102:   return new UserAccessTokenRequiredException(error);
@@ -183,7 +184,7 @@ public class GraphApiException extends RuntimeException
       // 500..599: application messaging errors ?
       case 506:   return new MultipleConcurrentPostsException(error);
       // 600..699: FQL errors
-      case 613:   return new RateLimitExceededException(error);
+      case 613:   return new CustomRequestLimitReachedException(error);
       // 700..749: ref errors
       // 750..799: application integration errors
       // 900..949: application information errors