Reworked handling of error-responses from the Graph-API
[facebook-utils] / src / main / java / de / juplo / facebook / exceptions / UnknownErrorException.java
index 6e336f4..c281f09 100644 (file)
@@ -1,14 +1,18 @@
 package de.juplo.facebook.exceptions;
 
 
+import de.juplo.facebook.exceptions.GraphApiException.FacebookErrorMessage;
+
+
+
 /**
- *
- * @author kai
+ * 1: An unknown error has occurred.
+ * @author Kai Moritz
  */
 public class UnknownErrorException extends OAuthException
 {
-  public UnknownErrorException()
+  protected UnknownErrorException(FacebookErrorMessage error)
   {
-    super("An unknown error has occurred.", 1);
+    super(error);
   }
 }