We need to plan how to migrate from old exceptions into custom named ones.

This commit is contained in:
abdulmohsen
2023-12-15 23:03:08 +03:00
parent b58ec97edb
commit f08011dff2
4 changed files with 16 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace App\Libs\Exceptions;
namespace App\Libs\Exceptions\Backends;
use ErrorException;

View File

@@ -2,12 +2,10 @@
declare(strict_types=1);
namespace App\Libs\Exceptions;
namespace App\Libs\Exceptions\Backends;
/**
* Class InvalidArgumentException
*
* This class represents an exception that is thrown by the backend logic.
*/
class InvalidArgumentException extends BackendException
{

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Libs\Exceptions\Backends;
/**
* Class RuntimeException
*/
class RuntimeException extends BackendException
{
}

View File

@@ -5,10 +5,8 @@ declare(strict_types=1);
namespace App\Libs\Exceptions;
/**
* Class RuntimeException
*
* This class represents an exception that is thrown by the backend logic.
* General runtime exception.
*/
class RuntimeException extends BackendException
class RuntimeException extends \RuntimeException
{
}