name = $name; $this->trace = $trace; } /** * Returns the class name of the error thrown from the task. * * @return string */ public function getName(): string { return $this->name; } /** * Gets the stack trace at the point the error was thrown in the task. * * @return string */ public function getWorkerTrace(): string { return $this->trace; } }