feat: new feature

This commit is contained in:
JaguarJack
2022-12-23 19:47:13 +08:00
parent 17f2dc4d3c
commit 81fac9f62c
38 changed files with 1019 additions and 1486 deletions

View File

@@ -4,10 +4,17 @@ namespace Modules\Permissions\Exceptions;
use Catch\Enums\Code;
use Catch\Exceptions\CatchException;
use Symfony\Component\HttpFoundation\Response;
class PermissionForbidden extends CatchException
{
protected $message = 'permission forbidden';
protected $code = Code::PERMISSION_FORBIDDEN;
public function statusCode(): int
{
return Response::HTTP_FORBIDDEN;
}
}