public static class SymphonyErrorPage extends Exception

class.symphony.php #781

SymphonyErrorPage extends the default Exception class. All of these exceptions will halt execution immediately and return the exception as a HTML page. By default the HTML template is usererror.generic.php from the TEMPLATES directory.

Methods

void __construct(string|XMLElement $message, string $heading, string $template, array $additional, integer $status)

Constructor for SymphonyErrorPage sets it's class variables

Parameters
  • $message string|XMLElementA description for this error, which can be provided as a string or as an XMLElement.

  • $heading stringA heading for the error page, by default this is "Symphony Fatal Error"

  • $template stringA string for the error page template to use, defaults to 'generic'. This can be the name of any template file in the TEMPLATES directory. A template using the naming convention of tpl.*.php.

  • $additional arrayAllows custom information to be passed to the Symphony Error Page that the template may want to expose, such as custom Headers etc.

  • $status integerProperly sets the HTTP status code for the response. Defaults to Page::HTTP_STATUS_ERROR

StdClass getAdditional()

Accessor for $_additional

string getHeading()

Accessor for the $_heading of the error page

integer getHttpStatusCode()

Accessor for $_status

XMLElement getMessageObject()

Accessor for $_messageObject

string|false getTemplate()

Returns the path to the current template by looking at the WORKSPACE/template/ directory, then at the TEMPLATES directory for the convention usererror.*.php. If the template is not found, false is returned

Returns

String, which is the path to the template if the template is found, false otherwise

string getTemplateName()

A simple getter to the template name in order to be able to identify which type of exception this is.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details