class JobAttempted (View source)

Methods

__construct(string $connectionName, Job $job, Throwable|null $exception = null)

Create a new event instance.

bool
successful()

Determine if the job completed with failing or an unhandled exception occurring.

Details

__construct(string $connectionName, Job $job, Throwable|null $exception = null)

Create a new event instance.

Parameters

string $connectionName

The connection name.

Job $job

The job instance.

Throwable|null $exception

The exception, if one occurred while processing the job.

bool successful()

Determine if the job completed with failing or an unhandled exception occurring.

Return Value

bool