collapsed wrapped code blocks and generalized exception handling