JobExceptionOccurred.php 787B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Illuminate\Queue\Events;
  3. class JobExceptionOccurred
  4. {
  5. /**
  6. * The connection name.
  7. *
  8. * @var string
  9. */
  10. public $connectionName;
  11. /**
  12. * The job instance.
  13. *
  14. * @var \Illuminate\Contracts\Queue\Job
  15. */
  16. public $job;
  17. /**
  18. * The exception instance.
  19. *
  20. * @var \Exception
  21. */
  22. public $exception;
  23. /**
  24. * Create a new event instance.
  25. *
  26. * @param string $connectionName
  27. * @param \Illuminate\Contracts\Queue\Job $job
  28. * @param \Exception $exception
  29. * @return void
  30. */
  31. public function __construct($connectionName, $job, $exception)
  32. {
  33. $this->job = $job;
  34. $this->exception = $exception;
  35. $this->connectionName = $connectionName;
  36. }
  37. }