Exception.php 766 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @package Kohana
  4. * @category Exceptions
  5. * @author Kohana Team
  6. * @copyright (c) Kohana Team
  7. * @license https://koseven.ga/LICENSE.md
  8. */
  9. class Kohana_Validation_Exception extends Kohana_Exception {
  10. /**
  11. * @var object Validation instance
  12. */
  13. public $array;
  14. /**
  15. * @param Validation $array Validation object
  16. * @param string $message error message
  17. * @param array $values translation variables
  18. * @param int $code the exception code
  19. */
  20. public function __construct(Validation $array, $message = 'Failed to validate array', array $values = NULL, $code = 0, Exception $previous = NULL)
  21. {
  22. $this->array = $array;
  23. parent::__construct($message, $values, $code, $previous);
  24. }
  25. }