-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all exceptions implement a common interface
- Loading branch information
1 parent
d9f2897
commit eba522d
Showing
4 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
/** | ||
* @author Cong Peijun <[email protected]> | ||
*/ | ||
class EtcdException extends Exception | ||
class EtcdException extends Exception implements ExceptionInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace ActiveCollab\Etcd\Exception; | ||
|
||
/** | ||
* @package ActiveCollab\Etcd\Exception | ||
*/ | ||
interface ExceptionInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
/** | ||
* @author Cong Peijun <[email protected]> | ||
*/ | ||
class KeyExistsException extends EtcdException | ||
class KeyExistsException extends EtcdException implements ExceptionInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
/** | ||
* @author Cong Peijun <[email protected]> | ||
*/ | ||
class KeyNotFoundException extends EtcdException | ||
class KeyNotFoundException extends EtcdException implements ExceptionInterface | ||
{ | ||
} |