There are a variety of different reasons why you are getting pain in your eye. The causes of eye pain fall into two parts: Ocular pain and Obital Pain. Ocular pain is pain on the outer structures on...
Best guess is the onset of a migraine headache, although more detail would help (feel free to add to the Discussion section of this question).
Has this happened before? Does it come and go? Anything...