Reworked handling of error-responses from the Graph-API
[facebook-utils] / src / main / java / de / juplo / facebook / exceptions / UnexpectedErrorException.java
index 5aefff6..6d7369b 100644 (file)
@@ -1,14 +1,18 @@
 package de.juplo.facebook.exceptions;
 
 
+import de.juplo.facebook.exceptions.GraphApiException.FacebookErrorMessage;
+
+
+
 /**
- *
- * @author kai
+ * 2: An unexpected error has occurred.
+ * @author Kai Moritz
  */
 public class UnexpectedErrorException extends OAuthException
 {
-  public UnexpectedErrorException()
+  protected UnexpectedErrorException(FacebookErrorMessage error)
   {
-    super("An unexpected error has occurred. Please retry your request later.", 2);
+    super(error);
   }
 }