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 RetryableExceptionIfExceptionparameter passed in is aRetryableExceptionit is simply returned.static RetryableExceptionConstructs a new RetryableException which signals partial success ofcreateoperation.Methods inherited from class org.identityconnectors.framework.common.exceptions.ConnectorException
rethrow, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
wrap
IfExceptionparameter passed in is aRetryableExceptionit is simply returned. Otherwise theExceptionis wrapped in aRetryableExceptionand 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
RuntimeExceptionthat either is the specified exception or contains the specified exception.
-
wrap
Constructs a new RetryableException which signals partial success ofcreateoperation. 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 withUidand 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
RetryableExceptionthat either is the specified exception or contains the specified exception.
-