Skip to content

Commit 029b733

Browse files
committed
Rename exceptions
1 parent b6cce0f commit 029b733

File tree

3 files changed

+9
-34
lines changed

3 files changed

+9
-34
lines changed

src/Exception.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
<?php
22

3-
/*
4-
* This file is part of the Http Adapter package.
5-
*
6-
* (c) Eric GELOEN <geloen.eric@gmail.com>
7-
*
8-
* For the full copyright and license information, please read the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Http\Adapter;
3+
namespace Http\Client;
134

145
/**
6+
* Every HTTP Client related Exception should implement this interface
7+
*
158
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
169
*/
1710
interface Exception
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
<?php
22

3-
/*
4-
* This file is part of the Http Adapter package.
5-
*
6-
* (c) Eric GELOEN <geloen.eric@gmail.com>
7-
*
8-
* For the full copyright and license information, please read the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Http\Adapter\Exception;
3+
namespace Http\Client\Exception;
134

14-
use Http\Adapter\Exception;
5+
use Http\Client\Exception;
156
use Psr\Http\Message\RequestInterface;
167
use Psr\Http\Message\ResponseInterface;
178

189
/**
1910
* @author GeLo <geloen.eric@gmail.com>
2011
*/
21-
class HttpAdapterException extends \Exception implements Exception
12+
class HttpClientException extends \Exception implements Exception
2213
{
2314
/**
2415
* @var RequestInterface|null

src/Exception/MultiHttpAdapterException.php renamed to src/Exception/MultiHttpClientException.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
<?php
22

3-
/*
4-
* This file is part of the Http Adapter package.
5-
*
6-
* (c) Eric GELOEN <geloen.eric@gmail.com>
7-
*
8-
* For the full copyright and license information, please read the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Http\Adapter\Exception;
3+
namespace Http\Client\Exception;
134

14-
use Http\Adapter\Exception;
5+
use Http\Client\Exception;
156
use Psr\Http\Message\ResponseInterface;
167

178
/**
189
* @author GeLo <geloen.eric@gmail.com>
1910
*/
20-
class MultiHttpAdapterException extends \Exception implements Exception
11+
class MultiHttpClientException extends \Exception implements Exception
2112
{
2213
/**
2314
* @var HttpAdapterException[]

0 commit comments

Comments
 (0)