Page MenuHomePhabricator

Exception example (test script)

Authored By
poojanaik
Jul 22 2015, 1:21 AM
Size
166 B
Referenced Files
None
Subscribers
None

Exception example (test script)

>>> try:
... a=0/0
... except Exception as e:
... print type(e)
... print(e)
...
<type 'exceptions.ZeroDivisionError'>
integer division or modulo by zero

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/cd/z4/vopdcdsxs56ed5u5
Default Alt Text
Exception example (test script) (166 B)

Event Timeline