feat: implements domain-level ExceptionInterface

This commit is contained in:
kenjis 2024-01-28 10:48:56 +09:00
parent b91b905a6e
commit cff68f1c81
No known key found for this signature in database
GPG Key ID: BD254878922AF198
7 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ namespace CodeIgniter\Database\Exceptions;
use CodeIgniter\Exceptions\HasExitCodeInterface;
use CodeIgniter\Exceptions\RuntimeException;
class DatabaseException extends RuntimeException implements HasExitCodeInterface
class DatabaseException extends RuntimeException implements ExceptionInterface, HasExitCodeInterface
{
public function getExitCode(): int
{

View File

@ -16,7 +16,7 @@ namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\DebugTraceableTrait;
use CodeIgniter\Exceptions\RuntimeException;
class FileException extends RuntimeException
class FileException extends RuntimeException implements ExceptionInterface
{
use DebugTraceableTrait;

View File

@ -16,7 +16,7 @@ namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\DebugTraceableTrait;
use CodeIgniter\Exceptions\RuntimeException;
class FileNotFoundException extends RuntimeException
class FileNotFoundException extends RuntimeException implements ExceptionInterface
{
use DebugTraceableTrait;

View File

@ -18,7 +18,7 @@ use CodeIgniter\Exceptions\FrameworkException;
/**
* Things that can go wrong with HTTP
*/
class HTTPException extends FrameworkException
class HTTPException extends FrameworkException implements ExceptionInterface
{
/**
* For CurlRequest

View File

@ -24,7 +24,7 @@ use Throwable;
/**
* RedirectException
*/
class RedirectException extends RuntimeException implements ResponsableInterface, HTTPExceptionInterface
class RedirectException extends RuntimeException implements ExceptionInterface, ResponsableInterface, HTTPExceptionInterface
{
/**
* HTTP status code for redirects

View File

@ -18,6 +18,6 @@ use CodeIgniter\Exceptions\RuntimeException;
/**
* @internal
*/
final class MethodNotFoundException extends RuntimeException
final class MethodNotFoundException extends RuntimeException implements ExceptionInterface
{
}

View File

@ -18,7 +18,7 @@ use CodeIgniter\Exceptions\FrameworkException;
/**
* RouterException
*/
class RouterException extends FrameworkException
class RouterException extends FrameworkException implements ExceptionInterface
{
/**
* Thrown when the actual parameter type does not match