<?php
namespace Illuminate\Queue;
use RuntimeException;
class MaxAttemptsExceededException extends RuntimeException
{
public $job;
public static function forJob($job)
{
return tap(new static($job->resolveName().' has been attempted too many times.'), function ($e) use ($job) {
$e->job = $job;
});
}
}