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:
Serializable
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:
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryableException
IfException
parameter passed in is aRetryableException
it is simply returned.static RetryableException
Constructs a new RetryableException which signals partial success ofcreate
operation.Methods inherited from class org.identityconnectors.framework.common.exceptions.ConnectorException
rethrow, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
wrap
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
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.
-