1<?php
2
3namespace dokuwiki\plugin\bez\meta;
4
5class ValidationException extends \Exception
6{
7    protected $validaion_errors = array();
8    protected $table = '';
9    // Redefine the exception so message isn't optional
10    public function __construct($table, $validaion_errors, $code = 0, Exception $previous = null) {
11        $this->validaion_errors = $validaion_errors;
12        $this->table = $table;
13        $message = 'Validation errors';
14        // make sure everything is assigned properly
15        parent::__construct($message, $code, $previous);
16    }
17
18    public function get_errors() {
19        return $this->validaion_errors;
20    }
21}