for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Backup\Exceptions;
use Exception;
class NotificationCouldNotBeSent extends Exception
{
public static function noNotificationClassForEvent($event): self
$eventClass = get_class($event);
return new static("There is no notification class that can handle event `{$eventClass}`.");
}