QuestionQ51Verified/Coding Conventions, Best Practices, and StandardizationCopy linkReport a problemAsk AstroTutorSave questionWhat does explicit exception chaining mean?AIt is another name for a traceback file that shows the hierarchy of exceptions.BIt is a situation where an exception is raised during other exception handling - the context attribute being filled with the exception details.CIt is a situation where an exception is raised intentionally during other exception handling – the cause attribute is filled with the exception details.DIt is a way to preserve all objects involved in exception raising.Show AnswerAnswerExplanationExplicit exception chaining deliberately raises one exception from another during exception handling, such as with raise NewError() from original_error. The original exception is stored in the new exception’s __cause__ attribute.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion