The exception stores the HttpStatus and HttpHeaders of the failed request
[facebook-errors] / src / main / java / de / juplo / facebook / errors / UnknownErrorException.java
index 7f5e8ff..4115f7b 100644 (file)
@@ -1,6 +1,11 @@
 package de.juplo.facebook.errors;
 
 
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
+
+
+
 
 /**
  * 1: An unknown error has occurred.
@@ -8,8 +13,12 @@ package de.juplo.facebook.errors;
  */
 public class UnknownErrorException extends OAuthException
 {
-  protected UnknownErrorException(FacebookErrorMessage error)
+  protected UnknownErrorException(
+      HttpStatus status,
+      HttpHeaders headers,
+      FacebookErrorMessage error
+      )
   {
-    super(error);
+    super(status, headers, error);
   }
 }