3.7 Exceptions and Error Handling

Descrição

TYPO3 CD 2020 (zweite Auflage) Quiz sobre 3.7 Exceptions and Error Handling, criado por Pascal Bartl em 09-04-2021.
Pascal Bartl
Quiz por Pascal Bartl, atualizado more than 1 year ago
Pascal Bartl
Criado por Pascal Bartl aproximadamente 3 anos atrás
0
0

Resumo de Recurso

Questão 1

Questão
Which error and exception handlers exist in TYPO3 by default? (2)
Responda
  • 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

Questão 2

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

Questão 3

Questão
Which statements about error logging in extensions are correct? (1)
Responda
  • 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

Semelhante

13 motivos para usar Tecnologia na Educação
Alessandra S.
Aprenda a fazer uma boa Redação para concursos Públicos em 5 passos
Alessandra S.
A Psicologia ou as psicologias
jvoliveira12
PSICOLOGIA DO DESENVOLVIMENTO E DA APRENDIZAGEM
vanessasenez
Estrutura e Formação das Palavras
Alessandra S.
Exame Nacional de Português 2
Sandra Franco
Principais Temas para estudar Geografia
Marina Faria
Estrutura das palavras e Processo de formação das palavras
Juliane Antoniel
05 - Atos Administrativos
Silvio R. Urbano da Silva
6 ideias para Dinamizar a Sala de Aula
Maria José
Estratégia Nacional de Defesa
willian reis