Moved exceptions to class files, created getObjectName method