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.