Test
3.7 Exceptions and Error Handling
Preguntas del test (3)
1Which error and exception handlers exist in TYPO3 by default? (2)
- AClass \TYPO3\CMS\Core\Error\ErrorHandler as the default error handler
- BClass \TYPO3\CMS\Core\Error\SysLogHandler for writing errors to the system log
- CClass \TYPO3\CMS\Core\Error\WarningHandler for generating warnings
- DClass \TYPO3\CMS\Core\Error\ProductionExceptionHandler for the production context
2You want to output errors generated by the default error handler as Flash Messages in the backend. What do you
need to do? (1)- AMake sure the debugExceptionHandler is set to \TYPO3\CMS\Core\Error\DebugExceptionHandler
- BMake sure Flash Messages are enabled in the Install Tool
- CMake sure errors are generated with the flag flashOutput set to true
- DErrors can not be displayed as Flash Messages by default – they are written to the system log for security reasons
3Which statements about error logging in extensions are correct? (1)
- AWarnings and errors should be directly written to the sys_log table using the Query Builder
- BAn instance of the Logger API is available in Extbase, if the system extension EXT:sys_logger is activated
- CExtension developers should use the TYPO3 core class DevLogging for debugging purposes during development
- DIf an extension throws an exception, this will be logged using the configured error handler
- EExtensions should never throw exceptions but always output Flash Messages
Información
- Descripción
- El usuario ha eliminado su información de asignaturas Test sobre 3.7 Exceptions and Error Handling, creado por Usuario eliminado el 27/04/2022.
- Autor
- Usuario eliminado
- Idioma
- English
- Visitas
- 26
- Historial
- Creado el 27 abr 2022 · actualizado el 27 abr 2022
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test