The degradation of a solid body caused by exposure to cavitation. This may include loss of material, surface deformation, or changes in properties or appearance.