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