Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ErrorRendererInterface.php

interface ErrorRendererInterface

Formats an exception to be used as response content.

@author Yonel Ceruto <yonelceruto@gmail.com>

Hierarchy

  • interface \Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface

Expanded class hierarchy of ErrorRendererInterface

All classes that implement ErrorRendererInterface

1 file declares its use of ErrorRendererInterface
ErrorController.php in vendor/symfony/http-kernel/Controller/ErrorController.php

File

vendor/symfony/error-handler/ErrorRenderer/ErrorRendererInterface.php, line 21

Namespace

Symfony\Component\ErrorHandler\ErrorRenderer
View source
interface ErrorRendererInterface {
    public const IDE_LINK_FORMATS = [
        'textmate' => 'txmt://open?url=file://%f&line=%l',
        'macvim' => 'mvim://open?url=file://%f&line=%l',
        'emacs' => 'emacs://open?url=file://%f&line=%l',
        'sublime' => 'subl://open?url=file://%f&line=%l',
        'phpstorm' => 'phpstorm://open?file=%f&line=%l',
        'atom' => 'atom://core/open/file?filename=%f&line=%l',
        'vscode' => 'vscode://file/%f:%l',
    ];
    
    /**
     * Renders a Throwable as a FlattenException.
     */
    public function render(\Throwable $exception) : FlattenException;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ErrorRendererInterface::IDE_LINK_FORMATS public constant
ErrorRendererInterface::render public function Renders a Throwable as a FlattenException. 3

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal