for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\AwsSns\Exceptions;
use NotificationChannels\AwsSns\SnsMessage;
class CouldNotSendNotification extends \Exception
{
public static function invalidReceiver()
return new static(
'The notifiable did not have a receiving phone number. Add a routeNotificationForSns
method or one of the conventional attributes to your notifiable.'
);
}
public static function invalidMessageObject($message)
$type = is_object($message) ? get_class($message) : gettype($message);
'Notification was not sent. The message should be a instance of `'.SnsMessage::class."` and a `{$type}` was given."