for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\PanaceaMobile\Exceptions;
use Exception;
use DomainException;
class CouldNotSendNotification extends Exception
{
public static function serviceRespondedWithAnError(DomainException $exception)
return new static(
"Service responded with an error '{$exception->getCode()}: {$exception->getMessage()}'"
);
}