Skip to content

Commit

Permalink
suffix with "Interface" (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Sep 5, 2018
1 parent 82cf0dd commit 34bb331
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
/**
* Every HTTP client related Exception MUST implement this interface.
*/
interface ClientException extends \Throwable
interface ClientExceptionInterface extends \Throwable
{
}
2 changes: 1 addition & 1 deletion src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 34bb331

Please sign in to comment.