master

laravel/framework

Last updated at: 29/12/2023 09:23

JobReleasedAfterException.php

TLDR

This file contains the definition of the JobReleasedAfterException class in the Illuminate\Queue\Events namespace.

Classes

JobReleasedAfterException

The JobReleasedAfterException class represents an event that is fired when a job has been released after throwing an exception. It contains the following properties:

  • $connectionName: The connection name where the job was executed.
  • $job: The job instance that was released.

This class has a constructor method that accepts the $connectionName and $job parameters to set the respective properties.

<?php

namespace Illuminate\Queue\Events;

class JobReleasedAfterException
{
    /**
     * The connection name.
     *
     * @var string
     */
    public $connectionName;

    /**
     * The job instance.
     *
     * @var \Illuminate\Contracts\Queue\Job
     */
    public $job;

    /**
     * Create a new event instance.
     *
     * @param  string  $connectionName
     * @param  \Illuminate\Contracts\Queue\Job  $job
     * @return void
     */
    public function __construct($connectionName, $job)
    {
        $this->job = $job;
        $this->connectionName = $connectionName;
    }
}