public class AgoravaDeploymentExceptionTranformer implements DeploymentExceptionTransformer {
@Override
public Throwable transform(Throwable throwable) {
if (throwable != null && throwable.getMessage().contains("OAuthSession cannot have @Current annotation and a " +
"provider")) {
return new OAuthSessionWithCurrentAndProviderRelatedQualifiersException("");
} else {
return null;
}
}