<?php

namespace Velis\Bpm\Ticket\Exception;

use Throwable;
use Velis\Exception\BusinessLogicException;
use Velis\Lang;

class PersonIsNotObserverException extends BusinessLogicException
{
    public function __construct(
        $message = null,
        $code = 0,
        ?string $error = null,
        ?array $details = null,
        ?int $httpCode = null,
        ?Throwable $previous = null,
    ) {
        $message ??= Lang::get('TICKET_PERSON_IS_NOT_OBSERVER');

        parent::__construct($message, $code, $error, $details, $httpCode, $previous);
    }
}
