Refactored exception use statements.