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 RollbackException
is detected and the main transaction is rolled back.
When called multiple times, only the most recent error record set is stored.
errorRecord
- an instance of Record
Copyright © Veeva Systems 2017–2021. All rights reserved.