Page MenuHomePhabricator
Paste P1831

Exception example (test script)
ActivePublic

Authored by poojanaik on Jul 22 2015, 1:21 AM.
Tags
None
Referenced Files
F644858: Exception example (test script)
Jul 22 2015, 1:21 AM
Subscribers
None
>>> try:
... a=0/0
... except Exception as e:
... print type(e)
... print(e)
...
<type 'exceptions.ZeroDivisionError'>
integer division or modulo by zero

Event Timeline

poojanaik changed the title of this paste from untitled to Exception example (test script).
poojanaik updated the paste's language from autodetect to autodetect.