Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JException
+ Graphe d'héritage de JException:

Fonctions membres publiques

 __construct ($msg, $code=0, $level=null, $info=null, $backtrace=false)
 
 __toString ()
 
 toString ()
 
 get ($property, $default=null)
 
 getProperties ($public=true)
 
 getError ($i=null, $toString=true)
 
 getErrors ()
 
 set ($property, $value=null)
 
 setProperties ($properties)
 
 setError ($error)
 

Attributs protégés

 $level = null
 
 $info = ''
 
 $function = null
 
 $class = null
 
 $type = null
 
 $args = array()
 
 $backtrace = null
 
 $_errors = array()
 

Description détaillée

Joomla! Exception object.

Depuis
1.5
Obsolète:
1.7

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $msg,
  $code = 0,
  $level = null,
  $info = null,
  $backtrace = false 
)

Constructor

  • used to set up the error with all needed error details.
Paramètres
string$msgThe error message
integer$codeThe error code from the application
integer$levelThe error level (use the PHP constants E_ALL, E_NOTICE etc.).
string$infoOptional: The additional error information.
boolean$backtraceTrue if backtrace information is to be collected
Depuis
1.5
Obsolète:
1.7

Références $i, $info, JError\addToStack(), code, et null.

Documentation des fonctions membres

◆ __toString()

__toString ( )

Returns to error message

Renvoie
string Error message
Depuis
1.6
Obsolète:
1.7

Références $message.

◆ get()

get (   $property,
  $default = null 
)

Returns a property of the object or the default value if the property is not set.

Paramètres
string$propertyThe name of the property
mixed$defaultThe default value
Renvoie
mixed The value of the property or null
Depuis
1.6
Obsolète:
1.7
Voir également
JException::getProperties()

Références $default.

◆ getError()

getError (   $i = null,
  $toString = true 
)

Get the most recent error message

Paramètres
integer$iOption error index
boolean$toStringIndicates if JError objects should return their error message
Renvoie
string Error message
Depuis
1.6
Obsolète:
1.7

Références $i, elseif, et null.

◆ getErrors()

getErrors ( )

Return all errors, if any

Renvoie
array Array of error messages or JErrors
Depuis
1.6
Obsolète:
1.7

◆ getProperties()

getProperties (   $public = true)

Returns an associative array of object properties

Paramètres
boolean$publicIf true, returns only the public properties
Renvoie
array Object properties
Depuis
1.6
Obsolète:
1.7
Voir également
JException::get()

Références $key, et $value.

◆ set()

set (   $property,
  $value = null 
)

Modifies a property of the object, creating it if it does not already exist.

Paramètres
string$propertyThe name of the property
mixed$valueThe value of the property to set
Renvoie
mixed Previous value of the property
Depuis
1.6
Obsolète:
1.7
Voir également
JException::setProperties()

Références $value, et null.

◆ setError()

setError (   $error)

Add an error message

Paramètres
string$errorError message
Renvoie
void
Depuis
1.6
Obsolète:
1.7

◆ setProperties()

setProperties (   $properties)

Set the object properties based on a named array/hash

Paramètres
mixed$propertiesEither and associative array or another object
Renvoie
boolean
Depuis
1.6
Obsolète:
1.7
Voir également
JException::set()

◆ toString()

toString ( )

Returns to error message

Renvoie
string Error message
Depuis
1.5
Obsolète:
1.7

Documentation des champs

◆ $_errors

$_errors = array()
protected

◆ $args

$args = array()
protected

◆ $backtrace

$backtrace = null
protected

◆ $class

$class = null
protected

◆ $function

$function = null
protected

◆ $info

$info = ''
protected

◆ $level

$level = null
protected

◆ $type

$type = null
protected

La documentation de cette classe a été générée à partir du fichier suivant :