diff --git a/src/ClientException.php b/src/ClientExceptionInterface.php similarity index 68% rename from src/ClientException.php rename to src/ClientExceptionInterface.php index 6c6be16..575c51b 100644 --- a/src/ClientException.php +++ b/src/ClientExceptionInterface.php @@ -5,6 +5,6 @@ /** * Every HTTP client related Exception MUST implement this interface. */ -interface ClientException extends \Throwable +interface ClientExceptionInterface extends \Throwable { } \ No newline at end of file diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 5a5b41d..36883e7 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -25,7 +25,7 @@ interface ClientInterface * * @return ResponseInterface * - * @throws \Psr\Http\Client\ClientException If an error happens while processing the request. + * @throws \Psr\Http\Client\ClientExceptionInterface If an error happens while processing the request. */ public function sendRequest(RequestInterface $request): ResponseInterface; } diff --git a/src/NetworkException.php b/src/NetworkExceptionInterface.php similarity index 89% rename from src/NetworkException.php rename to src/NetworkExceptionInterface.php index 86c5cd9..ac66250 100644 --- a/src/NetworkException.php +++ b/src/NetworkExceptionInterface.php @@ -11,7 +11,7 @@ * * Example: the target host name can not be resolved or the connection failed. */ -interface NetworkException extends ClientException +interface NetworkExceptionInterface extends ClientExceptionInterface { /** * Returns the request. diff --git a/src/RequestException.php b/src/RequestExceptionInterface.php similarity index 88% rename from src/RequestException.php rename to src/RequestExceptionInterface.php index d758bc8..b17fc34 100644 --- a/src/RequestException.php +++ b/src/RequestExceptionInterface.php @@ -11,7 +11,7 @@ * - Request is invalid (e.g. method is missing) * - Runtime request errors (e.g. the body stream is not seekable) */ -interface RequestException extends ClientException +interface RequestExceptionInterface extends ClientExceptionInterface { /** * Returns the request.