Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

511 B
Raw Blame
<?php

namespace HiEvents\Exceptions;

use HiEvents\Http\ResponseCodes;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Throwable;

class UnauthorizedException extends AccessDeniedHttpException
{
    public function __construct(
        string $message = 'This action is unauthorized',
        ?Throwable $previous = null,
        int $code = ResponseCodes::HTTP_FORBIDDEN,
        array $headers = []
    ) {
        parent::__construct($message, $previous, $code, $headers);
    }
}