Skip to content

Commit a848b1e

Browse files
committed
Base exception
1 parent 664b05c commit a848b1e

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

src/Exception/DiscoveryException.php

Lines changed: 12 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)