mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-18 11:44:06 +00:00
46 lines
779 B
PHP
46 lines
779 B
PHP
<?php
|
|
|
|
namespace think\queue\event;
|
|
|
|
use Exception;
|
|
use think\queue\Job;
|
|
|
|
class JobExceptionOccurred
|
|
{
|
|
/**
|
|
* The connection name.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $connectionName;
|
|
|
|
/**
|
|
* The job instance.
|
|
*
|
|
* @var Job
|
|
*/
|
|
public $job;
|
|
|
|
/**
|
|
* The exception instance.
|
|
*
|
|
* @var Exception
|
|
*/
|
|
public $exception;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param string $connectionName
|
|
* @param Job $job
|
|
* @param Exception $exception
|
|
* @return void
|
|
*/
|
|
public function __construct($connectionName, $job, $exception)
|
|
{
|
|
$this->job = $job;
|
|
$this->exception = $exception;
|
|
$this->connectionName = $connectionName;
|
|
}
|
|
}
|