Documentation

Kohana_Exception extends Exception
in package

Creates a generic i18n exception.

Table of Contents

Properties

$code  : mixed
$header  : mixed
$id  : mixed

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

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
string

getTranslation()

Fetch the translation args.

public getTranslation() : string
Return values
string

sendHeaders()

Sends an Internal Server Error header.

public sendHeaders() : void
On this page

Search results