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