Newer Version Available
TriggerContext Class
Provides information about the platform event trigger that’s currently
executing, such as how many times the trigger was retried due to the EventBus.RetryableException.
Namespace
TriggerContext Properties
The following are properties for TriggerContext.
lastError
Signature
public String lastError {get;}
Property Value
Type: String
Usage
The error message that this property returns is the message that was passed in when creating the EventBus.RetryableException exception, as follows.
1throw new EventBus.RetryableException(
2 'Condition is not met, so retrying the trigger again.');retries
Read-only. The number of times the trigger was retried due to throwing
the EventBus.RetryableException.
Signature
public Integer retries {get;}
Property Value
Type: Integer