Modules

Validate_Exception
extends Kohana_Validate_Exception
extends Kohana_Exception
extends Exception

package
Kohana
category
Exceptions
author
Kohana Team
copyright
© 2009-2010 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/validate/exception.php on line 3.

Properties

public object $array

Validate instance

protected $code

protected $file

protected $line

protected $message

Methods

public __construct( Validate $array [, string $message = string(24) "Failed to validate array" , array $values = NULL , int $code = integer 0 ] ) (defined in Kohana_Validate_Exception)

Parameters

  • Validate $array required - Validate object
  • string $message = string(24) "Failed to validate array" - Error message
  • array $values = NULL - Translation variables
  • int $code = integer 0 - The exception code

Source Code

public function __construct(Validate $array, $message = 'Failed to validate array', array $values = NULL, $code = 0)
{
	$this->array = $array;

	parent::__construct($message, $values, $code);
}

public __toString( ) (defined in Kohana_Exception)

Magic object-to-string method.

echo $exception;

Tags

Return Values

  • string

Source Code

public function __toString()
{
	return Kohana::exception_text($this);
}

final public getCode( ) (defined in Exception)

final public getFile( ) (defined in Exception)

final public getLine( ) (defined in Exception)

final public getMessage( ) (defined in Exception)

final public getPrevious( ) (defined in Exception)

final public getTrace( ) (defined in Exception)

final public getTraceAsString( ) (defined in Exception)

final private __clone( ) (defined in Exception)