It is abnormal to get eye hurt after eye exam. Just ask the eye doctor who get you eye exam. Do the instruments that they used were not sterile, or they put the drops in your eyes? If they out the drops in your eyes, it will make your pupils open wide, but it will recover after several hours. If you take the eye exam in sunny day, you shall prepare a pair of sunglasses to help you.
Sorry to hear that, by the way, did they use special instrument to touch your eyes? Or did they give you some kind of eye drops? If no, may be you just need a good rest and recheck your eyes and see if the symptom continues. Normally, a simple eye exam doesn't do harm to eyes. Go and get some sleep afterwards, take some eye exercise properly, or maybe you just gotta relax so as to get rid of those feelings.