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