public class RetryableException extends ConnectorException
Modifier and Type | Method and Description |
---|---|
static RetryableException |
wrap(String message,
Throwable cause)
If
Exception parameter passed in is a RetryableException
it is simply returned. |
static RetryableException |
wrap(String message,
Uid uid)
Constructs a new RetryableException which signals partial success of
create operation. |
rethrow, wrap
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static RetryableException wrap(String message, Throwable cause)
Exception
parameter passed in is a RetryableException
it is simply returned. Otherwise the Exception
is wrapped in a
RetryableException
and returned.message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).cause
- Exception to wrap or cast and return.RuntimeException
that either is the
specified exception or contains the specified exception.public static RetryableException wrap(String message, Uid uid)
create
operation.
This should be called inside
CreateOp.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 with Uid
and Application should call the
UpdateOp.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.message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).uid
- the new object's Uid.RetryableException
that either is the
specified exception or contains the specified exception.Copyright © 2019. All rights reserved.