working example in Python
Print exceptions