3.7 Exceptions and Error Handling

Descripción

TYPO3 CD 2020 (zweite Auflage) Test sobre 3.7 Exceptions and Error Handling, creado por Pascal Bartl el 09/04/2021.
Pascal Bartl
Test por Pascal Bartl, actualizado hace más de 1 año
Pascal Bartl
Creado por Pascal Bartl hace más de 3 años
1
0

Resumen del Recurso

Pregunta 1

Pregunta
Which error and exception handlers exist in TYPO3 by default? (2)
Respuesta
  • Class \TYPO3\CMS\Core\Error\ErrorHandler as the default error handler
  • Class \TYPO3\CMS\Core\Error\SysLogHandler for writing errors to the system log
  • Class \TYPO3\CMS\Core\Error\WarningHandler for generating warnings
  • Class \TYPO3\CMS\Core\Error\ProductionExceptionHandler for the production context

Pregunta 2

Pregunta
You want to output errors generated by the default error handler as Flash Messages in the backend. What do you need to do? (1)
Respuesta
  • Make sure the debugExceptionHandler is set to \TYPO3\CMS\Core\Error\DebugExceptionHandler
  • Make sure Flash Messages are enabled in the Install Tool
  • Make sure errors are generated with the flag flashOutput set to true
  • Errors can not be displayed as Flash Messages by default – they are written to the system log for security reasons

Pregunta 3

Pregunta
Which statements about error logging in extensions are correct? (1)
Respuesta
  • Warnings and errors should be directly written to the sys_log table using the Query Builder
  • An instance of the Logger API is available in Extbase, if the system extension EXT:sys_logger is activated
  • Extension developers should use the TYPO3 core class DevLogging for debugging purposes during development
  • If an extension throws an exception, this will be logged using the configured error handler
  • Extensions should never throw exceptions but always output Flash Messages
Mostrar resumen completo Ocultar resumen completo

Similar

Test de Nombres de Alimentos en Inglés
Virginia Vera
Prepara la Selectividad
Diego Santos
Cristobal Colón - El Nuevo Mundo
Diego Santos
TÉCNICAS DE CREATIVIDAD
mirnaedl
Elementos de la Tabla Periódica
Roberto Jerónimo
ELECTRICIDAD
Raquel Vargas
INCONTINENCIA Y PROLAPSO
Luz Moor
LA METODOLOGÍA DE LAS BASES DE DATOS
Fernando Tapia
FACTORES QUE INTERVIENEN EN EL MARKETING
Juan Carlos Pimiento Lancheros
Literatura Barroca y Neoclásica
Jose Lopez
Paso 2 - Planificación
lucenith rosado