19 lines
345 B
PHP
Executable File
19 lines
345 B
PHP
Executable File
<?php
|
|
namespace phpformbuilder\Validator;
|
|
|
|
class Exception extends \Exception
|
|
{
|
|
protected $_errors = array();
|
|
|
|
public function __construct($message, array $errors = array())
|
|
{
|
|
parent::__construct($message);
|
|
$this->_errors = $errors;
|
|
}
|
|
|
|
public function getErrors()
|
|
{
|
|
return $this->_errors;
|
|
}
|
|
}
|