LogiQuest
Back to Exceptions
16

What is the output of the following code?

class MyError(Exception):
    pass
try:
    raise MyError('custom')
except MyError as e:
    print('caught', e)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.