Back to Joomla project (class list)

Class ExceptionHandler - list of methods

Displays the custom error page when an uncaught exception occurs.
Package: Joomla\CMS\Exception
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Exception/ExceptionHandler.php
Project: Joomla

Method Summary

public static bool
(int $errorNumber, string $errorMessage, string $errorFile, int $errorLine)

Handles an error triggered with the E_USER_DEPRECATED level.
Parameters
  • int $errorNumber The level of the raised error, represented by the E_* constants.
  • string $errorMessage The error message.
  • string $errorFile The file the error was triggered from.
  • int $errorLine The line number the error was triggered from.
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: handleUserDeprecatedErrors Source Code

public static void
(\Throwable $error)

Handles exceptions: logs errors and renders error page.
Parameters
  • \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
Returns
  • void
Since
  • 3.10.0
Show source code of this method: handleException Source Code

public static void
(\Throwable $error)

Render the error page based on an exception.
Parameters
  • \Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page.
Returns
  • void
Since
  • 3.0
Show source code of this method: render Source Code

protected static bool
(mixed $error)

Checks if given error belong to PHP exception class (\Throwable for PHP 7+, \Exception for PHP 5-).
Parameters
  • mixed $error Any error value.
Returns
  • bool
Since
  • 3.10.0
Show source code of this method: isException Source Code

protected static void
(\Throwable $error)

Logs exception, catching all possible errors during logging.
Parameters
  • \Throwable $error An Exception or Throwable (PHP 7+) object to get error message from.
Returns
  • void
Since
  • 3.10.0
Show source code of this method: logException Source Code

Tags Summary

Since
3.0