Whose error?

What is “margin of error”? We see this term used in surveys and political polls quite often. What does it mean and how is it obtained? Whose error?

From a book often used in the Herald-Leader newsroom titled Numbers in the Newsroom:
Most organizations cannot survey an entire population, so they “sample” part [...]