The following are properties for TriggerContext.
public String lastError {get;}
Type: String
The error message that this property returns is the message that was passed in when creating the EventBus.RetryableException exception, as follows.
throw new EventBus.RetryableException( 'Condition is not met, so retrying the trigger again.');
public Integer retries {get;}
Type: Integer
The following are methods for TriggerContext.
public String getResumeCheckpoint()
Type: String
public void setResumeCheckpoint(String resumeReplayId)
Type: void
The method throws an EventBus.InvalidReplayIdException if the supplied Replay ID is not valid—the replay ID is not in the current trigger batch of events, in the Trigger.new list.
This snippet shows how to call the method and pass in the replayId property of an event instance.
EventBus.TriggerContext.currentContext().setResumeCheckpoint(event.replayId);