Throwing an error with the proper code on compound class name check in atoms