====== __construct ====== {#JAPI Joomla.Framework Document JDocumentError::__construct #} Constructor for JDocumentError class. The constructor should be invoked via the [[references:joomla.framework:document:jdocument-getinstance|JDocument::getInstance()]] method. The constructor sets the mime type to 'text/html' and the document type to 'error' and invokes the parent constructor. ===== Syntax ===== JDocumentError __construct ( **$options** ) | **$options** | array | is an associative array of configuration values for the JDocument class. Please see [[references:joomla.framework:document:jdocument|JDocument]] for more information. | ===== Examples ===== A JDocumentError object can be created using the following: $options = array( 'direction' => 'rtl' ); $errorDoc =& JDocument::getInstance( 'error', $options ); ---- ~~DISCUSSION~~