import java.io.InputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
*
* @author Kai Moritz
*/
-public class GraphApiException extends OAuth2Exception
+public class GraphApiException extends RuntimeException
{
public enum Type { OAuthException, GraphMethodException }
case 21: return new PageMigratedException(error);
// 100..199: graph method errors
case 100: return new UnsupportedGetRequestException(error);
+ case 102: return new UserAccessTokenRequiredException(error);
case 104: return new AccessTokenRequiredException(error);
// 200..299: permission errors
// 300..399: data editing errors