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 ⭐️

371 B
Raw Blame
<?php

namespace HiEvents\Exceptions;

use Throwable;

class PermissionRequiredException extends CodedAccessException
{
    public const ERROR_CODE = 'PERMISSION_REQUIRED';

    public function __construct(?string $message = null, ?Throwable $previous = null)
    {
        parent::__construct($message ?? __("You don't have permission to do this."), $previous);
    }
}