Skip to content

Commit 1665123

Browse files
committed
Renamed DiscoveryException to Exception
1 parent 5b61efb commit 1665123

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Http\Discovery\Exception;
3+
namespace Http\Discovery;
44

55
/**
66
* An interface implemented by all our exception.
77
*
88
* @author Tobias Nyholm <[email protected]>
99
*/
10-
interface DiscoveryException
10+
interface Exception
1111
{
1212
}

src/Exception/DiscoveryFailedException.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
namespace Http\Discovery\Exception;
44

5+
use Http\Discovery\Exception;
6+
57
/**
68
* Thrown when all discovery strategies fails to find a resource.
79
*
810
* @author Tobias Nyholm <[email protected]>
911
*/
10-
final class DiscoveryFailedException extends \Exception implements DiscoveryException
12+
final class DiscoveryFailedException extends \Exception implements Exception
1113
{
1214
/**
1315
* @var array

src/Exception/NotFoundException.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
namespace Http\Discovery\Exception;
44

5+
use Http\Discovery\Exception;
6+
57
/**
68
* Thrown when a discovery does not find any matches.
79
*
810
* @author Márk Sági-Kazár <[email protected]>
911
*/
10-
final class NotFoundException extends \RuntimeException implements DiscoveryException
12+
final class NotFoundException extends \RuntimeException implements Exception
1113
{
1214
}

src/Exception/StrategyUnavailableException.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
namespace Http\Discovery\Exception;
44

5+
use Http\Discovery\Exception;
6+
57
/**
68
* This exception is thrown when we cannot use a discovery strategy. This is *not* thrown when
79
* the discovery fails to find a class.
810
*
911
* @author Tobias Nyholm <[email protected]>
1012
*/
11-
class StrategyUnavailableException extends \RuntimeException implements DiscoveryException
13+
class StrategyUnavailableException extends \RuntimeException implements Exception
1214
{
1315
}

0 commit comments

Comments
 (0)