Package com.veeva.vault.sdk.api.queue
Interface ErrorProvider
public interface ErrorProvider
Provides a method to set an error record in Vault.
An instance of this is obtained from the MessageContext inside a MessageProcessor
and is used to provide a detailed exception_message__sys record upon failure.
-
Method Summary
-
Method Details
-
setError
Sets an error record to be stored in Vault.The record must be created as an instance of the
exception_message__sysObject. The record is only stored in Vault when a rollback exception is detected and the main transaction is rolled back. For example,RollbackException.When called multiple times, only the most recent error record set is stored.
- Parameters:
errorRecord- an instance ofRecord
-