Drupal 8  8.0.2
ErrorTestController Class Reference
Inheritance diagram for ErrorTestController:

Public Member Functions

 __construct (Connection $database)
 
 generateWarnings ($collect_errors=FALSE)
 
 generateFatals ()
 
 triggerException ()
 
 triggerPDOException ()
 
 triggerRendererException ()
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $database
 

Detailed Description

Controller routines for error_test routes.

Constructor & Destructor Documentation

__construct ( Connection  $database)

Constructs a object.

Parameters
\Drupal\Core\Database\Connection$databaseThe database connection.

References Drupal\database().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{}

generateFatals ( )

Generate fatals to test the error handler.

generateWarnings (   $collect_errors = FALSE)

Generate warnings to test the error handler.

triggerException ( )

Trigger an exception to test the exception handler.

triggerPDOException ( )

Trigger an exception to test the PDO exception handler.

References Drupal\database().

Here is the call graph for this function:

triggerRendererException ( )

Trigger an exception during rendering.


The documentation for this class was generated from the following file: