/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
--- catch: try: generateSomeException() except Exception, e: # Mother of all exceptions print e --- throw: try: raise Exception, "Something is rotten in the state of Denmark" except e: print e