python raise exption example
Example 1: try pass python
except:
pass
Example 2: python: raise error
class MyError(TypeError):
pass
raise MyError('An error happened')
except:
pass
class MyError(TypeError):
pass
raise MyError('An error happened')