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