Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe ExceptionHandler

Fonctions membres publiques statiques

static handleUserDeprecatedErrors (int $errorNumber, string $errorMessage, string $errorFile, int $errorLine)
 
static handleException (\Throwable $error)
 

Fonctions membres protégées statiques

static isException ($error)
 
static logException (\Throwable $error)
 

Description détaillée

Displays the custom error page when an uncaught exception occurs.

Depuis
3.0

Documentation des fonctions membres

◆ handleException()

static handleException ( \Throwable  $error)
static

Handles exceptions: logs errors and renders error page.

Paramètres
\Exception | \Throwable$errorAn Exception or Throwable (PHP 7+) object for which to render the error page.
Renvoie
void
Depuis
3.10.0

◆ handleUserDeprecatedErrors()

static handleUserDeprecatedErrors ( int  $errorNumber,
string  $errorMessage,
string  $errorFile,
int  $errorLine 
)
static

Handles an error triggered with the E_USER_DEPRECATED level.

Paramètres
integer$errorNumberThe level of the raised error, represented by the E_* constants.
string$errorMessageThe error message.
string$errorFileThe file the error was triggered from.
integer$errorLineThe line number the error was triggered from.
Renvoie
boolean
Depuis
4.0.0

Références Log\add(), JDEBUG, et Log\WARNING.

◆ isException()

static isException (   $error)
staticprotected

Checks if given error belong to PHP exception class ( for PHP 7+, for PHP 5-).

Paramètres
mixed$errorAny error value.
Renvoie
boolean
Depuis
3.10.0

◆ logException()

static logException ( \Throwable  $error)
staticprotected

Logs exception, catching all possible errors during logging.

Paramètres
\Throwable$errorAn Exception or Throwable (PHP 7+) object to get error message from.
Renvoie
void
Depuis
3.10.0

Références Log\add(), et Log\CRITICAL.


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