A general definition of error metrics is given, based on a distance function

for symbols of the code alphabet, and extended to entire codewords by a Lebesgue norm

. It is shown that error metrics considered by Hamming, Lee, Shannon, and Stein are special cases, and a geometric interpretation of the "error spheres" for these metrics is presented.