This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnkohana/system/classes/Kohana/Validation/Exception.php

30 lines
836 B
PHP
Raw Permalink Normal View History

2013-04-22 04:09:50 +00:00
<?php defined('SYSPATH') OR die('No direct script access.');
/**
* @package Kohana
* @category Exceptions
* @author Kohana Team
* @copyright (c) 2009-2012 Kohana Team
* @license http://kohanaframework.org/license
*/
class Kohana_Validation_Exception extends Kohana_Exception {
/**
* @var object Validation instance
*/
public $array;
/**
* @param Validation $array Validation object
* @param string $message error message
* @param array $values translation variables
* @param int $code the exception code
*/
public function __construct(Validation $array, $message = 'Failed to validate array', array $values = NULL, $code = 0, Exception $previous = NULL)
{
$this->array = $array;
parent::__construct($message, $values, $code, $previous);
}
2014-09-06 13:43:07 +00:00
}