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

    Modifier and Type
    Method
    Description
    void
    setError(Record errorRecord)
    Sets an error record to be stored in Vault.
  • Method Details

    • setError

      void setError(Record errorRecord)
      Sets an error record to be stored in Vault.

      The record must be created as an instance of the exception_message__sys Object. 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 of Record