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 RetryableExceptionwrap(java.lang.String message, java.lang.Throwable cause)IfExceptionparameter passed in is aRetryableExceptionit is simply returned.static RetryableExceptionwrap(java.lang.String message, Uid uid)Constructs a new RetryableException which signals partial success ofcreateoperation.- 
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)
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
public static RetryableException wrap(java.lang.String message, Uid uid)
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. 
 
 - 
 
 -