Files
piratepoet/lib/Util/Sudzy/ValidationException.php
marco ce730d7c3b Settings router.
Here's a simple settings router. the createOrUpdate method lives
in the model, and by default all models will return true on save
or false if save went wrong.
2015-08-19 23:55:30 +02:00

20 lines
349 B
PHP

<?php
namespace Sudzy;
class ValidationException extends \Exception
{
protected $_validationErrors;
public function __construct($errs)
{
$this->_validationErrors = $errs;
parent::__construct(implode("\n", $errs));
}
public function getValidationErrors()
{
return $this->_validationErrors;
}
}