minor #30549 [HttpClient] Make exceptions public (dunglas)

This PR was squashed before being merged into the 4.3-dev branch (closes #30549).

Discussion
----------

[HttpClient] Make exceptions public

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no<!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | n/a

Makes it easier to implement the interface. See api-platform/core#2608

Commits
-------

928d774e4a [HttpClient] Make exceptions public
This commit is contained in:
Fabien Potencier 2019-03-17 08:23:56 +01:00
commit d7fdcb1a5d
6 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class ClientException extends \RuntimeException implements ClientExceptionInterface
{

View File

@ -16,7 +16,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
/**
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class InvalidArgumentException extends \InvalidArgumentException implements TransportExceptionInterface
{

View File

@ -18,7 +18,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class JsonException extends \JsonException implements TransportExceptionInterface
{

View File

@ -18,7 +18,7 @@ use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class RedirectionException extends \RuntimeException implements RedirectionExceptionInterface
{

View File

@ -18,7 +18,7 @@ use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class ServerException extends \RuntimeException implements ServerExceptionInterface
{

View File

@ -16,7 +16,7 @@ use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
/**
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
* @experimental in 4.3
*/
final class TransportException extends \RuntimeException implements TransportExceptionInterface
{