language: Python (python 2.7.3)
date: 324 days 2 hours ago
link:
visibility: public
1
2
3
4
try:
    print(10 * (1/0))
except (ZeroDivisionError) as error:    # 'as' is needed by Python 3
    print("Yep, error caught:", error)