It seems like it should exist.. I just don't know where to find it or what this process is called.

When tracks are being ripped and encoded, what does the encoder do if data is missing because the cd is scratched?
What string would I look for when reading the mp3 code?