Explode Response to Frames
This commit is contained in:
@@ -4,8 +4,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace Nsq\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
use Nsq\Protocol\Error;
|
||||
|
||||
final class NsqError extends RuntimeException implements NsqException
|
||||
final class NsqError extends NsqException
|
||||
{
|
||||
public function __construct(Error $error)
|
||||
{
|
||||
parent::__construct($error->rawData);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user