null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
30183138
3.7 Exceptions and Error Handling
Description
TYPO3 CD 2020 (zweite Auflage) Quiz on 3.7 Exceptions and Error Handling, created by Pascal Bartl on 09/04/2021.
No tags specified
typo3 cd 2020 (zweite auflage)
Quiz by
Pascal Bartl
, updated more than 1 year ago
More
Less
Created by
Pascal Bartl
over 3 years ago
1
0
0
Resource summary
Question 1
Question
Which error and exception handlers exist in TYPO3 by default? (2)
Answer
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
Question 2
Question
You want to output errors generated by the default error handler as Flash Messages in the backend. What do you need to do? (1)
Answer
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
Question 3
Question
Which statements about error logging in extensions are correct? (1)
Answer
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
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
Blood Brothers (Characters)
nuhaheza
Tectonic Hazards flashcards
katiehumphrey
Chemical Symbols
Keera
The Biological basis of Heart Disease
Andrea Leyden
AQA GCSE Biology B1 unit 1
Olivia Phillips
Cold War Causes Revision
Tom Mitchell
Main People in Medicine Through Time
Holly Bamford
GCSE Science - B1 - You and Your Genes - Genes, Chromosomes and DNA
GeorgeHaines
Unit 2 flashcards
C R
The Five Minute Lesson Plan Template
tom.roche_
The Lymphatic System
james liew
Browse Library