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.class.php (line 22)

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 28)

the locale key

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

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 42)
  • 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 79)

getter for the locale key

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

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 ( )
__wakeup ( )

Documentation generated on Mon, 26 Oct 2015 21:53:28 +0100 by phpDocumentor 1.4.3