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:
commit
d7fdcb1a5d
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user