for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of graze/queue.
*
* Copyright (c) 2015 Nature Delivered Ltd. <https://www.graze.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @license https://github.com/graze/queue/blob/master/LICENSE MIT
* @link https://github.com/graze/queue
*/
namespace Graze\Queue\Adapter\Exception;
use Exception;
use Graze\Queue\Adapter\AdapterInterface;
use Graze\Queue\Message\MessageInterface;
* Exception to throw when an implmentation of {@see \Graze\Queue\AdapterInterface}
* does not support a method on {@see \Graze\Queue\Adapter\AdapterInterface}.
class MethodNotSupportedException extends AdapterException
{
* @var string
protected $method;
* @param string $method
* @param AdapterInterface $adapter
* @param MessageInterface[] $messages
* @param array $debug
* @param Exception $previous
public function __construct(
$method,
AdapterInterface $adapter,
array $messages,
array $debug = [],
Exception $previous = null
) {
$this->method = $method;
parent::__construct(
sprintf('Method `%s` is not supported by this adapter', $method),
$adapter,
$messages,
$debug,
$previous
);
}
* @return string
public function getMethod()
return $this->method;