Understanding the Difference between Residual and Error in Regression Analysis

When expressing a linear regression equation, the terms residual or error often appear at the end of the equation. But what exactly do residual and error mean? And what is the fundamental difference between the two?