added class name in exception message.