for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Audiens\AdForm\Exception;
/**
* Exception thrown if Redis fails
*/
class RedisException extends SeverityAwareException
{
protected const MESSAGE = 'Redis connection failed with message: %s';
public static function connect($message): self
return new self (
sprintf(self::MESSAGE, $message),
0,
null,
SeverityAwareException::SEVERITY_CRITICAL
);
}