pitch (throw) someone a curve/ curveball

Meaning 1
to pitch a curve ball to the batter in baseball
Sentence 1
A curve ball moves away from the batter and is difficult to hit.
Meaning 2
to surprise someone unpleasantly
Sentence 2
I am sorry I couldn't answer the question. He threw a curve when he asked me about last years figures.