public interface ErrorProvider
Modifier and Type | Method and Description |
---|---|
void |
setError(Record errorRecord)
Sets an error record to be stored in Vault.
|
void setError(Record errorRecord)
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.
errorRecord
- an instance of Record
Copyright © Veeva Systems 2017–2022. All rights reserved.