Skip to content

Commit b6d7c68

Browse files
committed
renamed ClientWasNotCreated exception to InvalidConfiguration
1 parent fd0ea2c commit b6d7c68

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ClientFactory/ClientFactoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Http\HttplugBundle\ClientFactory;
44

55
use Http\Client\HttpClient;
6-
use Http\HttplugBundle\Exception\ClientWasNotCreated;
6+
use Http\HttplugBundle\Exception\InvalidConfiguration;
77

88
/**
99
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -17,7 +17,7 @@ interface ClientFactoryInterface
1717
*
1818
* @return HttpClient
1919
*
20-
* @throws ClientWasNotCreated
20+
* @throws InvalidConfiguration
2121
*/
2222
public function createClient(array $config = array());
2323

ClientFactory/DummyFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Http\HttplugBundle\ClientFactory;
44

5-
use Http\HttplugBundle\Exception\ClientWasNotCreated;
5+
use Http\HttplugBundle\Exception\InvalidConfiguration;
66

77
/**
88
* This class is used with the dependency injection when we register the service. It acts like a place holder and
@@ -17,7 +17,7 @@ class DummyFactory implements ClientFactoryInterface
1717
*/
1818
public function createClient(array $config = array())
1919
{
20-
throw new ClientWasNotCreated('The DummyFactory should not be used.');
20+
throw new InvalidConfiguration('The DummyFactory should not be used.');
2121
}
2222

2323
/**

Exception/ClientWasNotCreated.php renamed to Exception/InvalidConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace Http\HttplugBundle\Exception;
44

5-
class ClientWasNotCreated extends \Exception
5+
class InvalidConfiguration extends \Exception
66
{
77
}

0 commit comments

Comments
 (0)