← Quiz: Exceptions in Depth: all 10 questions
Quiz: Exceptions in Depth · Question 7 of 10
What does raise ConfigError("bad") from e add compared to raise ConfigError("bad")?
What does raise ConfigError("bad") from e add compared to raise ConfigError("bad")?
- A.It makes the exception impossible to catch
- B.It deletes the original exception
- C.It stores e as the cause, so both errors appear in the traceback
- D.It converts e into a warning
Answer & explanation
Correct answer: It stores e as the cause, so both errors appear in the traceback
The original is kept in cause.
Can you get the rest right without peeking?
Take the timed Quiz: Exceptions in Depth quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →