Modules
Kohana_Request_Exception
extends Kohana_Exception
extends Exception
Class declared in SYSPATH/classes/kohana/request/exception.php on line 9.
Constants
- None
Properties
protected
$codeprotected
$fileprotected
$lineprotected
$message
Methods
public __construct( string $message [, array $variables = NULL , integer $code = integer 0 ] ) (defined in Kohana_Exception)
Creates a new translated exception.
throw new Kohana_Exception('Something went terrible wrong, :user',
array(':user' => $user));
Parameters
-
string$message required - Error message -
array$variables = NULL - Translation variables -
integer$code = integer 0 - The exception code
Return Values
void
Source Code
public function __construct($message, array $variables = NULL, $code = 0)
{
// Set the message
$message = __($message, $variables);
// Pass the message to the parent
parent::__construct($message, $code);
}
public __construct( string $message [, array $variables = NULL , integer $code = integer 0 ] ) (defined in Kohana_Exception)
Creates a new translated exception.
throw new Kohana_Exception('Something went terrible wrong, :user',
array(':user' => $user));
Parameters
-
string$message required - Error message -
array$variables = NULL - Translation variables -
integer$code = integer 0 - The exception code
Return Values
void
Source Code
public function __construct($message, array $variables = NULL, $code = 0)
{
// Set the message
$message = __($message, $variables);
// Pass the message to the parent
parent::__construct($message, $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);
}
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);
}