for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Larium\Pay;
use RuntimeException;
class GatewayException extends RuntimeException
{
public static function notImplemented($transaction, $gateway): self
return new self(
sprintf("Gateway `%s` does not support `%s` transaction", $gateway, $transaction)
);
}
public static function invalidGatewayName($name): self
sprintf("Could not resolve gateway with name `%s`", $name)
public static function gatewayAlreadyRegistered($name): self
sprintf("Gateway with name `%s` is already registered", $name)