Skip to content

Commit

Permalink
Make all exceptions implement a common interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijastuden committed Dec 17, 2015
1 parent d9f2897 commit eba522d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Exception/EtcdException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
/**
* @author Cong Peijun <[email protected]>
*/
class EtcdException extends Exception
class EtcdException extends Exception implements ExceptionInterface
{
}
10 changes: 10 additions & 0 deletions src/Exception/ExceptionInterface.php
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
{
}
2 changes: 1 addition & 1 deletion src/Exception/KeyExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
/**
* @author Cong Peijun <[email protected]>
*/
class KeyExistsException extends EtcdException
class KeyExistsException extends EtcdException implements ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion src/Exception/KeyNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
/**
* @author Cong Peijun <[email protected]>
*/
class KeyNotFoundException extends EtcdException
class KeyNotFoundException extends EtcdException implements ExceptionInterface
{
}

0 comments on commit eba522d

Please sign in to comment.