Something wrong with my pancreas?

I'm 16 and for a couple years now very rarly when I eat too much sugar food like lollies and nothing else I get pains in my stomach like my pancreas and I don't know what it is please help hurts so bad I need to sit in a ball