Fixed code formatting for Exception