Extract Method raiseInvalidClassNameError

raiseInvalidClassNameError method is added which displays a proper
message depending on the output value of checkingClassNames method. And
These lines are deleted from SaveClass methods.