Refactored classes in thematically packages
[facebook-errors] / src / main / java / de / juplo / facebook / PageMigratedException.java
diff --git a/src/main/java/de/juplo/facebook/PageMigratedException.java b/src/main/java/de/juplo/facebook/PageMigratedException.java
deleted file mode 100644 (file)
index c3da159..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-package de.juplo.facebook;
-
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-
-
-/**
- *
- * @author kai
- */
-public class PageMigratedException extends OAuthException
-{
-  private final static Pattern pattern =
-      Pattern.compile("Page ID ([0-9]+) was migrated to page ID ([0-9]+)");
-
-  private final Long oldId, newId;
-
-
-  public PageMigratedException(String message)
-  {
-    super(message, 21);
-    Matcher matcher = pattern.matcher(message);
-    if (!matcher.find())
-      throw new RuntimeException("Could not parse migration-error: " + message);
-    oldId = Long.parseLong(matcher.group(1));
-    newId = Long.parseLong(matcher.group(2));
-  }
-
-
-  public Long getOldId()
-  {
-    return oldId;
-  }
-
-  public Long getNewId()
-  {
-    return newId;
-  }
-}