The exception stores the HttpStatus and HttpHeaders of the failed request
[facebook-errors] / src / main / java / de / juplo / facebook / errors / UnmappedErrorException.java
index 839de09..997f53f 100644 (file)
@@ -1,6 +1,11 @@
 package de.juplo.facebook.errors;
 
 
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
+
+
+
 
 /**
  * Marker class for error-messages, that are not mapped yet.
@@ -11,8 +16,12 @@ package de.juplo.facebook.errors;
  */
 public class UnmappedErrorException extends GraphApiException
 {
-  protected  UnmappedErrorException(FacebookErrorMessage error)
+  protected  UnmappedErrorException(
+      HttpStatus status,
+      HttpHeaders headers,
+      FacebookErrorMessage error
+      )
   {
-    super(error);
+    super(status, headers, error);
   }
 }