Restructured exception class files