Icicle\Concurrent\Worker\Internal\TaskFailure::__construct PHP Method

__construct() public method

public __construct ( Throwable $exception )
$exception Throwable
    public function __construct(\Throwable $exception)
    {
        $this->type = get_class($exception);
        $this->message = $exception->getMessage();
        $this->code = $exception->getCode();
        $this->trace = $exception->getTraceAsString();
    }