error message with class information