Added delete last category exception class

This commit is contained in:
Cüneyt Şentürk
2022-12-06 14:24:38 +03:00
parent 1d0849ce98
commit 68aeed43bf
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,22 @@
<?php
namespace App\Exceptions\Settings;
use Exception;
use Throwable;
class LastCategoryDelete extends Exception
{
/*
100000000 => Akaunting charecters
800 => Setting category menu number
40 => CRUD (last item)
1 => First authorized exception
Code: 100000841
*/
public function __construct(string $message = '', int $code = 100000841, Throwable|null $previous = null)
{
parent::__construct($message, $code, $previous);
}
}