LOG.debug("Error message :: " + message);
if (message != null) {
message = message.toLowerCase();
}
if (message.contains("session has expired")) {
throw new AccessTokenExpireException();
} else {
throw new SocialAuthException("Message :: " + message);
}
} else {
throw new SocialAuthException("Message :: " + respStr);
}
} catch (Exception e) {
if (AccessTokenExpireException.class.isInstance(e)) {
new AccessTokenExpireException();
} else if (SocialAuthException.class.isInstance(e)) {
throw new SocialAuthException(e.getMessage());
}
}
}