exception raise not handling the right exception code example
Example 1: raise python
# Raise is used to cause an error
raise(Exception("Put whatever you want here!"))
raise(TypeError)
Example 2: python: raise error
class MyError(TypeError):
pass
raise MyError('An error happened')