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
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
$localeKey
the locale key
protected
string
$localeKey
= ''
$localeParams
parameters for the locale key
protected
mixed
$localeParams
= array()
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
Return values
mixed —getLocaleKey()
getter for the locale key
public
getLocaleKey() : string
Return values
string —getLocaleParameters()
getter for the locale parameters
public
getLocaleParameters() : string