Curdled cream

I was making coffee and I went to put the cream in and next I am pouring thick curdled cream down the sink. I kept focusing on the texture. I shook the container several times to make sure the cream really was spoiled. What does this mean?