*/
public class GraphApiException extends OAuth2Exception
{
+ public enum Type { OAuthException, GraphMethodException }
+
+
final static Logger LOG = LoggerFactory.getLogger(GraphApiException.class);
final static ObjectMapper OBJECT_MAPPER;
// 950..999: batch api errors
// 1000..1099: event api errors
// 1100..1199: live-message errors
+ case 2200: return new CallbackVerificationFailedException(error);
default:
LOG.info("unmapped error: {}", error);
}
- public String getType()
+ public Type getType()
{
- return error.type;
+ return error.type == null ? null : Type.valueOf(error.type);
}
public Integer getCode()