for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Newsletter\Exceptions;
use Exception;
class InvalidNewsletterList extends Exception
{
/**
* @return static
*/
public static function noListsDefined()
return new static('There are no lists defined.');
}
* @param string $name
*
public static function noListWithName($name)
return new static("There is no list named `{$name}`.");
* @param $defaultListName
public static function defaultListDoesNotExist($defaultListName)
return new static("Could not find a default list named `{$defaultListName}`.");