for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Textlocal\Exceptions;
class CouldNotSendNotification extends \Exception
{
public static function serviceRespondedWithAnError($error)
return new static("Textlocal responded with error: '{$error->message} [{$error->code}]'");
}