<?php

namespace App\Exceptions;

use RuntimeException;

class PostbackRejectedException extends RuntimeException
{
    public int $httpStatus;
    public bool $duplicate;

    public function __construct(string $message, int $httpStatus = 401, bool $duplicate = false)
    {
        parent::__construct($message);
        $this->httpStatus = $httpStatus;
        $this->duplicate = $duplicate;
    }
}
