FIX: DEPRECATED
This commit is contained in:
@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail;
|
|||||||
|
|
||||||
class Create extends ServiceActionFail
|
class Create extends ServiceActionFail
|
||||||
{
|
{
|
||||||
public function __construct(string $service, Throwable $previous = null)
|
public function __construct(string $service, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
$code = 1;
|
$code = 1;
|
||||||
|
@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail;
|
|||||||
|
|
||||||
class Delete extends ServiceActionFail
|
class Delete extends ServiceActionFail
|
||||||
{
|
{
|
||||||
public function __construct(string $service, Throwable $previous = null)
|
public function __construct(string $service, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
$action = 'delete';
|
$action = 'delete';
|
||||||
$code = 4;
|
$code = 4;
|
||||||
|
@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail;
|
|||||||
|
|
||||||
class Read extends ServiceActionFail
|
class Read extends ServiceActionFail
|
||||||
{
|
{
|
||||||
public function __construct(string $service, Throwable $previous = null)
|
public function __construct(string $service, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
$action = 'read';
|
$action = 'read';
|
||||||
$code = 2;
|
$code = 2;
|
||||||
|
@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail;
|
|||||||
|
|
||||||
class Update extends ServiceActionFail
|
class Update extends ServiceActionFail
|
||||||
{
|
{
|
||||||
public function __construct(string $service, Throwable $previous = null)
|
public function __construct(string $service, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
$action = 'edit';
|
$action = 'edit';
|
||||||
$code = 3;
|
$code = 3;
|
||||||
|
@ -6,7 +6,7 @@ use Throwable;
|
|||||||
|
|
||||||
class ServiceActionFail extends Exception
|
class ServiceActionFail extends Exception
|
||||||
{
|
{
|
||||||
public function __construct(string $service,string $action = "__invoke", int $code = 0, Throwable $previous = null)
|
public function __construct(string $service,string $action = "__invoke", int $code = 0, ?Throwable $previous = null)
|
||||||
{
|
{
|
||||||
$message = "Action {$action} failed for Service {$service}.";
|
$message = "Action {$action} failed for Service {$service}.";
|
||||||
$code = 700 + $code;
|
$code = 700 + $code;
|
||||||
|
Reference in New Issue
Block a user