3.7 Exceptions and Error Handling

Beschreibung

TYPO3 CD 2020 (zweite Auflage) Quiz am 3.7 Exceptions and Error Handling, erstellt von Pascal Bartl am 09/04/2021.
Pascal Bartl
Quiz von Pascal Bartl, aktualisiert more than 1 year ago
Pascal Bartl
Erstellt von Pascal Bartl vor mehr als 3 Jahre
1
0

Zusammenfassung der Ressource

Frage 1

Frage
Which error and exception handlers exist in TYPO3 by default? (2)
Antworten
  • 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

Frage 2

Frage
You want to output errors generated by the default error handler as Flash Messages in the backend. What do you need to do? (1)
Antworten
  • 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

Frage 3

Frage
Which statements about error logging in extensions are correct? (1)
Antworten
  • 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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Histologie
Nicole Nafzger
Règlement et relance - Phrases - Chapitre 5
Gaelle Bourgeois
Réclamation - Phrases - Chapitre 6
Gaelle Bourgeois
Französisch Zeitformen
Salome Guldener
Aufbau Quellenanalyse
barbara91
Öff.Recht - Streite Staatsorganisationsrecht
myJurazone
Collocation - Business English - EBC - WU
Geht euch nichts an
OEKO - Fragenkatalog 1
Sarah Rettätsfro
Genetik (Aufbau DNA, Replikation, Proteinbiosynthese)
gina_celine-broz
GPSY ALPS
Simon Wirsching
Factores de tensión y estrategias de potenciación
NURY PAOLA DUEÑAS SIERRA