Style checks and corrected exception name