Question OOP-EXC-0043
MediumWhat is the output of this code?
class AppError(Exception): pass
class DbError(AppError): pass
try:
raise DbError("x")
except AppError as e:
print(type(e).__name__)
- A.
x
- B.
AppError
- C.
DbError
- D.
Exception
Sign up free to see the answer and a step-by-step explanation.