Advice to all Python users: learn JavaScript
JS has Error types, it can throw them. In fact, they can throw them inside the / operator itself. Watch.
x = {valueOf:1} 1/x