mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
feat: implements domain-level ExceptionInterface
This commit is contained in:
parent
b91b905a6e
commit
cff68f1c81
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -18,6 +18,6 @@ use CodeIgniter\Exceptions\RuntimeException;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class MethodNotFoundException extends RuntimeException
|
||||
final class MethodNotFoundException extends RuntimeException implements ExceptionInterface
|
||||
{
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user