mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 16:23:12 +08:00
Refactored exceptions to properly use package exceptions
This commit is contained in:
@@ -3,9 +3,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Rest\Exception;
|
||||
|
||||
use Shlinkio\Shlink\Common\Exception\ExceptionInterface;
|
||||
|
||||
class AuthenticationException extends \RuntimeException implements ExceptionInterface
|
||||
class AuthenticationException extends RuntimeException
|
||||
{
|
||||
public static function fromCredentials($username, $password)
|
||||
{
|
||||
|
||||
8
module/Rest/src/Exception/ExceptionInterface.php
Normal file
8
module/Rest/src/Exception/ExceptionInterface.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Rest\Exception;
|
||||
|
||||
interface ExceptionInterface extends \Throwable
|
||||
{
|
||||
}
|
||||
8
module/Rest/src/Exception/RuntimeException.php
Normal file
8
module/Rest/src/Exception/RuntimeException.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Shlinkio\Shlink\Rest\Exception;
|
||||
|
||||
class RuntimeException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user