Class jException

Description

Jelix Exception

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

Located in /core/jException.lib.php (line 34)

Exception
   |
   --jException
Direct descendents
Class Description
jExceptionForms exception for jforms
jExceptionSelector Exception for selector errors
jDaoXmlException Exception for Dao compiler
Variable Summary
string $localeKey
Method Summary
jException __construct (string $localekey, [array $localeParams = array()], [integer $code = 1], [string $lang = null], [string $charset = null])
string getLocaleKey ()
Variables
string $localeKey = '' (line 40)

the locale key

  • access: protected
mixed $localeParams = array() (line 45)

parameters for the locale key

  • access: protected

Inherited Variables

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$string
$trace
Methods
Constructor __construct (line 54)
  • access: public
jException __construct (string $localekey, [array $localeParams = array()], [integer $code = 1], [string $lang = null], [string $charset = null])
  • string $localekey: a locale key
  • array $localeParams: parameters for the message (for sprintf)
  • integer $code: error code (can be provided by the localized message)
  • string $lang
  • string $charset

Redefinition of:
Exception::constructor __construct ( [$message = ], [$code = ] )

Redefined in descendants as:
getLocaleKey (line 91)

getter for the locale key

  • access: public
string getLocaleKey ()
getLocaleParameters (line 83)

getter for the locale parameters

  • access: public
string getLocaleParameters ()

Inherited Methods

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Mon, 19 Sep 2011 14:12:33 +0200 by phpDocumentor 1.4.3