Python - Custom Exceptions
Consider this code:
What will be printed?
class BaseError(Exception):
pass
class DerivedError(BaseError):
pass
try:
raise DerivedError('Problem')
except BaseError as e:
print(type(e).__name__)What will be printed?
