The exception stores the HttpStatus and HttpHeaders of the failed request
[facebook-errors] / src / main / java / de / juplo / facebook / errors / GraphMethodException.java
index afe83cb..42dc23f 100644 (file)
@@ -1,6 +1,11 @@
 package de.juplo.facebook.errors;
 
 
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
+
+
+
 
 /**
  * Baseclass for exceptions of type {@code GraphMethodException}.
@@ -8,8 +13,12 @@ package de.juplo.facebook.errors;
  */
 public abstract class GraphMethodException extends GraphApiException
 {
-  GraphMethodException(FacebookErrorMessage error)
+  GraphMethodException(
+      HttpStatus status,
+      HttpHeaders headers,
+      FacebookErrorMessage error
+      )
   {
-    super(error);
+    super(status, headers, error);
   }
 }