tested condensed versions of handling multiple exceptions