<?php

namespace App\Exceptions;

use RuntimeException;

class InvalidPolicyTypeException extends RuntimeException
{
    public array $unknownPolicyTypes;

    public function __construct(array $unknownPolicyTypes)
    {
        $this->unknownPolicyTypes = array_values($unknownPolicyTypes);

        parent::__construct('Unknown policy types: '.implode(', ', $this->unknownPolicyTypes));
    }
}
