DawidMazurek/php-jsonrpc-server

View on GitHub
src/Exception/InvalidRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types = 1);

namespace DawidMazurek\JsonRpc\Exception;

use DawidMazurek\JsonRpc\Error\JsonRpcErrorCodes;

class InvalidRequest extends JsonRpcException
{
    public function __construct(string $message = '')
    {
        parent::__construct("Invalid request: " . $message, JsonRpcErrorCodes::INVALID_REQUEST);
    }
}