X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=dist%2Ffacebook-utils-2.5.0%2Fxref%2Fde%2Fjuplo%2Ffacebook%2Fexceptions%2FPageMigratedException.html;fp=dist%2Ffacebook-utils-2.5.0%2Fxref%2Fde%2Fjuplo%2Ffacebook%2Fexceptions%2FPageMigratedException.html;h=0000000000000000000000000000000000000000;hp=ee492adbcc4979333237dc2e4af252800cece7dd;hb=b293b312d6f0dd8b2dc716375fd442dd295a9942;hpb=9179a67d9952d3b63e95686dbd6cacd3c9e13cb2 diff --git a/dist/facebook-utils-2.5.0/xref/de/juplo/facebook/exceptions/PageMigratedException.html b/dist/facebook-utils-2.5.0/xref/de/juplo/facebook/exceptions/PageMigratedException.html deleted file mode 100644 index ee492adb..00000000 --- a/dist/facebook-utils-2.5.0/xref/de/juplo/facebook/exceptions/PageMigratedException.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -PageMigratedException xref - - - -
View Javadoc
-1   package de.juplo.facebook.exceptions;
-2   
-3   
-4   import java.util.regex.Matcher;
-5   import java.util.regex.Pattern;
-6   
-7   
-8   
-9   /**
-10   * 21: Page ID (XXX) was migrated to page ID (YYY).
-11   * @author Kai Moritz
-12   */
-13  public class PageMigratedException extends OAuthException
-14  {
-15    private final static Pattern pattern =
-16        Pattern.compile("Page ID ([0-9]+) was migrated to page ID ([0-9]+)");
-17  
-18    private final Long oldId, newId;
-19  
-20  
-21    protected PageMigratedException(FacebookErrorMessage error)
-22    {
-23      super(error);
-24      Matcher matcher = pattern.matcher(error.message);
-25      if (!matcher.find())
-26      {
-27        String warning = "Could not parse migration-error: " + error.message;
-28        LOG.error(warning);
-29        throw new RuntimeException(warning);
-30      }
-31      oldId = Long.parseLong(matcher.group(1));
-32      newId = Long.parseLong(matcher.group(2));
-33    }
-34  
-35  
-36    public Long getOldId()
-37    {
-38      return oldId;
-39    }
-40  
-41    public Long getNewId()
-42    {
-43      return newId;
-44    }
-45  }
-
-
- - -