Kohana_Exception
extends Exception
in package
Creates a generic i18n exception.
Table of Contents
Properties
Methods
- __construct() : mixed
- Set exception message.
- __toString() : string
- Magic method for converting an object to a string.
- getTemplate() : string
- Fetch the template name.
- getTranslation() : string
- Fetch the translation args.
- sendHeaders() : void
- Sends an Internal Server Error header.
Properties
$code
protected
mixed
$code
= \E_KOHANA
$header
protected
mixed
$header
= \FALSE
$id
protected
mixed
$id
Methods
__construct()
Set exception message.
public
__construct(string $error, mixed ...$args) : mixed
Parameters
- $error : string
-
i18n language key for the message
- $args : mixed
-
addition line parameters
__toString()
Magic method for converting an object to a string.
public
__toString() : string
Return values
string —i18n message
getTemplate()
Fetch the template name.
public
getTemplate() : string
Return values
stringgetTranslation()
Fetch the translation args.
public
getTranslation() : string
Return values
stringsendHeaders()
Sends an Internal Server Error header.
public
sendHeaders() : void