🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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")?

  1. A.It makes the exception impossible to catch
  2. B.It deletes the original exception
  3. C.It stores e as the cause, so both errors appear in the traceback
  4. 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 →