Skip to content

Commit

Permalink
Handling ConnId RetryableException (MID-3067)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed May 26, 2016
1 parent a8da756 commit dd679e8
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -49,6 +49,7 @@
import org.identityconnectors.framework.common.exceptions.InvalidCredentialException;
import org.identityconnectors.framework.common.exceptions.OperationTimeoutException;
import org.identityconnectors.framework.common.exceptions.PermissionDeniedException;
import org.identityconnectors.framework.common.exceptions.RetryableException;
import org.identityconnectors.framework.common.exceptions.UnknownUidException;
import org.identityconnectors.framework.common.objects.Attribute;
import org.identityconnectors.framework.common.objects.Uid;
Expand Down Expand Up @@ -268,6 +269,11 @@ static Throwable processIcfException(Throwable icfException, String desc,
Exception newEx = new SchemaException(createMessageFromAllExceptions(null, icfException));
icfResult.recordFatalError("Schema violation: "+icfException.getMessage(), newEx);
return newEx;

} else if (icfException instanceof RetryableException) {
Exception newEx = new CommunicationException(createMessageFromAllExceptions(null, icfException));
icfResult.recordFatalError("Retryable errror: "+icfException.getMessage(), newEx);
return newEx;

} else if (icfException instanceof ConnectorSecurityException) {
// Note: connection refused is also packed inside
Expand Down

0 comments on commit dd679e8

Please sign in to comment.