Back to Joomla project (class list)

Class ErrorDocument - list of methods

ErrorDocument class, provides an easy interface to parse and display an HTML based error page

Extends

Package: Joomla\CMS\Document
Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Document/ErrorDocument.php
Project: Joomla

Method Summary

public
(mixed $options = array())

Class constructor
Parameters
  • array $options Associative array of attributes
Since
  • 1.7.0
Show source code of this method: __construct Source Code

public bool
(mixed $error)

Set error object
Parameters
  • \Throwable $error Error object to set
Returns
  • bool True on success
Since
  • 1.7.0
Show source code of this method: setError Source Code

public \Joomla\CMS\Document\RendererInterface
(mixed $type)

Load a renderer
Parameters
  • string $type The renderer type
Returns
  • \Joomla\CMS\Document\RendererInterface
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: loadRenderer Source Code

public string
(mixed $cache = false, mixed $params = array())

Render the document
Parameters
  • bool $cache If true, cache the output
  • array $params Associative array of attributes
Returns
  • string The rendered data
Since
  • 1.7.0
Show source code of this method: render Source Code

public string
()

Render the backtrace
Returns
  • string The contents of the backtrace
Since
  • 1.7.0
Show source code of this method: renderBacktrace Source Code

Properties Summary

public bool
$debug
Flag if debug mode has been enabled
Since
  • 1.7.0
public \Throwable
$error
Error Object
Since
  • 1.7.0
protected \Throwable
$_error
Error Object
Since
  • 1.7.0

Tags Summary

Since
1.7.0