Skip to content

Commit 0b9e6e5

Browse files
committed
Base exception
1 parent 664b05c commit 0b9e6e5

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

src/Exception/DiscoveryException.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Http\Discovery\Exception;
4+
5+
/**
6+
* Base exception that all our public exceptions inherit from.
7+
*
8+
* @author Tobias Nyholm <[email protected]>
9+
*/
10+
abstract class DiscoveryException extends \RuntimeException
11+
{
12+
}

src/Exception/DiscoveryFailedException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Tobias Nyholm <[email protected]>
99
*/
10-
final class DiscoveryFailedException extends \Exception
10+
final class DiscoveryFailedException extends DiscoveryException
1111
{
1212
/**
1313
* @var array

src/Exception/NotFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
*
88
* @author Márk Sági-Kazár <[email protected]>
99
*/
10-
final class NotFoundException extends \RuntimeException
10+
final class NotFoundException extends DiscoveryException
1111
{
1212
}

src/Exception/StrategyUnavailableException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
*
99
* @author Tobias Nyholm <[email protected]>
1010
*/
11-
class StrategyUnavailableException extends \RuntimeException
11+
class StrategyUnavailableException extends DiscoveryException
1212
{
1313
}

0 commit comments

Comments
 (0)