That message is in no way personally directed just to you. As you said, it is just displayed every so often in the mining world as you mine. To answer what an x-ray is, it's a resource/texture pack that allows you to easily spot ores of interest such as diamond etc. and you will get permanently banned if you are found to be x-raying.. so don't do it.