Sets the state of the job to 'rejected'.
string $message: The log message to be saved along with the state change.
array $variables: (Optional) An array of variables to replace in the message on display.
string $type: Statically set to error.
\Drupal\tmgmt\JobInterface The job entity.
Job::addMessage()
public function rejected($message = NULL, $variables = array(), $type = 'error');