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
jDaoXmlException Exception for Dao compiler
jExceptionForms exception for jforms
jExceptionSelector Exception for selector errors
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
$previous
$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 = ], [$previous = ] )

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 = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Thu, 22 Mar 2012 22:15:27 +0100 by phpDocumentor 1.4.3