Class RetryableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.identityconnectors.framework.common.exceptions.ConnectorException
-
- org.identityconnectors.framework.common.exceptions.RetryableException
-
- All Implemented Interfaces:
java.io.Serializable
public class RetryableException extends ConnectorException
RetryableException indicates that a failure may be temporary, and that retrying the same request may be able to succeed in the future.- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetryableException
wrap(java.lang.String message, java.lang.Throwable cause)
IfException
parameter passed in is aRetryableException
it is simply returned.static RetryableException
wrap(java.lang.String message, Uid uid)
Constructs a new RetryableException which signals partial success ofcreate
operation.-
Methods inherited from class org.identityconnectors.framework.common.exceptions.ConnectorException
rethrow, wrap
-
-
-
-
Method Detail
-
wrap
public static RetryableException wrap(java.lang.String message, java.lang.Throwable cause)
IfException
parameter passed in is aRetryableException
it is simply returned. Otherwise theException
is wrapped in aRetryableException
and returned.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- Exception to wrap or cast and return.- Returns:
- a
RuntimeException
that either is the specified exception or contains the specified exception.
-
wrap
public static RetryableException wrap(java.lang.String message, Uid uid)
Constructs a new RetryableException which signals partial success ofcreate
operation. This should be called insideCreateOp.create(org.identityconnectors.framework.common.objects.ObjectClass, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)
implementation to signal that the create was not completed but the object was created withUid
and Application should call theUpdateOp.update(org.identityconnectors.framework.common.objects.ObjectClass, org.identityconnectors.framework.common.objects.Uid, java.util.Set, org.identityconnectors.framework.common.objects.OperationOptions)
method now.Use this only if the created object can not be deleted. The best-practice should always be the Connector implementation reverts the changes if the operation failed.
- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).uid
- the new object's Uid.- Returns:
- a
RetryableException
that either is the specified exception or contains the specified exception.
-
-