TODO: Rename...
2500: An active access token must be used
--- /dev/null
+package de.juplo.facebook.errors;
+
+
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
+
+
+
+/**
+ * 2200: Callback verification failed.
+ * @author Kai Moritz
+ */
+public class ActiveAccessTokenMissingException extends OAuthException
+{
+ protected ActiveAccessTokenMissingException(
+ HttpStatus status,
+ HttpHeaders headers,
+ FacebookErrorMessage error
+ )
+ {
+ super(status, headers, error);
+ }
+}
// 1100..1199: live-message errors
case 1609005: return new LinkPostFailureException(status, headers, error);
case 2200: return new CallbackVerificationFailedException(status, headers, error);
+ case 2500: return new ActiveAccessTokenMissingException(status, headers, error);
default:
GraphApiException e = new UnmappedErrorException(status, headers, error);
}
@Test
- public void testError2200()
+ public void testError2500()
{
String str ="{\"error\":{\"message\":\"An active access token must be used to query information about the current user.\",\"type\":\"OAuthException\",\"code\":2500,\"fbtrace_id\":\"AUmMHJlVYvTbQrBT11Dk104\"}}";
byte[] message = str.getBytes();