Jelix 1.8.13

jException extends Exception
in package

Jelix Exception.

It handles locale messages. Message property contains the locale key, and a new property contains the localized message.

Tags
subpackage

core

Table of Contents

$localeKey  : string
the locale key.
$localeParams  : mixed
parameters for the locale key.
__construct()  : mixed
getLocaleKey()  : string
getter for the locale key.
getLocaleParameters()  : string
getter for the locale parameters.

Properties

$localeParams

parameters for the locale key.

protected mixed $localeParams = array()
Tags

Methods

__construct()

public __construct(string $localekey[, array<string|int, mixed> $localeParams = array() ][, int $code = 1 ][, string $lang = null ][, string $charset = null ]) : mixed
Parameters
$localekey : string

a locale key

$localeParams : array<string|int, mixed> = array()

parameters for the message (for sprintf)

$code : int = 1

error code (can be provided by the localized message)

$lang : string = null
$charset : string = null
Tags
Return values
mixed

getLocaleKey()

getter for the locale key.

public getLocaleKey() : string
Tags
Return values
string

getLocaleParameters()

getter for the locale parameters.

public getLocaleParameters() : string
Tags
Return values
string

Search results