for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\TurboSMS\Exceptions;
use Exception;
class CouldNotSendNotification extends \Exception
{
/**
* Thrown when we're unable to communicate with turbosms.
*
* @param Exception $exception
* @return CouldNotSendNotification
*/
public static function couldNotCommunicateWithEndPoint(Exception $exception): self
return new static("The communication with endpoint failed. Reason: {$exception->getMessage()}", $exception->getCode(), $exception);
}