ScheduledTaskFailed.php
TLDR
The ScheduledTaskFailed.php
file contains the ScheduledTaskFailed
class, which represents an event that is fired when a scheduled task fails. This class has two properties: $task
, which represents the scheduled event that failed, and $exception
, which represents the exception that was thrown.
Classes
ScheduledTaskFailed
The ScheduledTaskFailed
class represents an event that is fired when a scheduled task fails. It has two properties:
-
$task
(type:\Illuminate\Console\Scheduling\Event
): Represents the scheduled event that failed. -
$exception
(type:\Throwable
): Represents the exception that was thrown.
<?php
namespace Illuminate\Console\Events;
use Illuminate\Console\Scheduling\Event;
use Throwable;
class ScheduledTaskFailed
{
/**
* The scheduled event that failed.
*
* @var \Illuminate\Console\Scheduling\Event
*/
public $task;
/**
* The exception that was thrown.
*
* @var \Throwable
*/
public $exception;
/**
* Create a new event instance.
*
* @param \Illuminate\Console\Scheduling\Event $task
* @param \Throwable $exception
* @return void
*/
public function __construct(Event $task, Throwable $exception)
{
$this->task = $task;
$this->exception = $exception;
}
}