Skip to content

Commit cad8d7b

Browse files
GrahamCampbellm1guelpf
authored andcommitted
Added exception interface
1 parent df7b8e5 commit cad8d7b

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

lib/Gitlab/Exception/ErrorException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*
66
* @author Joseph Bielawski <stloyd@gmail.com>
77
*/
8-
class ErrorException extends \ErrorException
8+
class ErrorException extends \ErrorException implements ExceptionInterface
99
{
1010
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php namespace Gitlab\Exception;
2+
3+
use Http\Client\Exception;
4+
5+
/**
6+
* ExceptionInterface
7+
*
8+
* @author Graham Campbell <graham@alt-three.com>
9+
*/
10+
interface ExceptionInterface extends Exception
11+
{
12+
}

lib/Gitlab/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*
66
* @author Joseph Bielawski <stloyd@gmail.com>
77
*/
8-
class InvalidArgumentException extends \InvalidArgumentException
8+
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
99
{
1010
}

lib/Gitlab/Exception/MissingArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @author Joseph Bielawski <stloyd@gmail.com>
77
*/
8-
class MissingArgumentException extends ErrorException
8+
class MissingArgumentException extends ErrorException implements ExceptionInterface
99
{
1010
public function __construct($required, $code = 0, $previous = null)
1111
{

lib/Gitlab/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*
66
* @author Joseph Bielawski <stloyd@gmail.com>
77
*/
8-
class RuntimeException extends \RuntimeException
8+
class RuntimeException extends \RuntimeException implements ExceptionInterface
99
{
1010
}

lib/Gitlab/Exception/ValidationFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
*
66
* @author Joseph Bielawski <stloyd@gmail.com>
77
*/
8-
class ValidationFailedException extends ErrorException
8+
class ValidationFailedException extends ErrorException implements ExceptionInterface
99
{
1010
}

0 commit comments

Comments
 (0)