Listing 3. Traditional Error Handling in Python

try:
    (offending code)
except ValueError:
    (error handling code)
except MyError:
    (error handling code)
</programlisting>

