Ray tomography: errors and error functions