public static function throwCustomError($message, $heading = 'Symphony Fatal Error', $status = Page::HTTP_STATUS_ERROR, $template = 'generic', array $additional = array())
    {
        GenericExceptionHandler::$enabled = true;
        throw new SymphonyErrorPage($message, $heading, $template, $additional, $status);
    }
public static function throwCustomError($message, $heading = 'Symphony Fatal Error', $status = Page::HTTP_STATUS_ERROR, $template = 'generic', array $additional = array())
    {
        GenericExceptionHandler::$enabled = true;
        throw new SymphonyErrorPage($message, $heading, $template, $additional, $status);
    }
public static function throwCustomError ( $ message , $ heading = 'Symphony Fatal Error' , $ status = Page :: HTTP_STATUS_ERROR , $ template = 'generic' , array $ additional = array ( ) ) { GenericExceptionHandler :: $ enabled = true ; throw new SymphonyErrorPage ( $ message , $ heading , $ template , $ additional , $ status ) ; }
A wrapper for throwing a new Symphony Error page.

This methods sets the `GenericExceptionHandler::$enabled` value to `true`.

@see core.SymphonyErrorPage
@param string|XMLElement $message
A description for this error, which can be provided as a string
or as an XMLElement.
@param string $heading
A heading for the error page
@param integer $status
Properly sets the HTTP status code for the response. Defaults to
`Page::HTTP_STATUS_ERROR`. Use `Page::HTTP_STATUS_XXX` to set this value.
@param string $template
A 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`.
@param array $additional
Allows custom information to be passed to the Symphony Error Page
that the template may want to expose, such as custom Headers etc.
@throws SymphonyErrorPage
A wrapper for throwing a new Symphony Error page .