tflori/verja

View on GitHub
src/Exception/InvalidValue.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Verja\Exception;

use Verja\Error;
use Verja\Exception;

class InvalidValue extends Exception
{
    /** @var Error[] */
    public $errors = [];

    public function __construct($message = "", Error ...$errors)
    {
        parent::__construct($message);

        $this->errors = $errors;
    }
}