How to distinguish discomfort from pain

In running, some kinds of hurt are good–but when do you draw the line?