Welcome to Apple Support Communities.
Well leave it for few minutes then try plugging it to the charger, if that does not work. Try restoring it from revious backup. This will change the software and hopefully earase the error. If that did not fix it i guess you need to take it to the Store for a check.
I really hope this helps you. Let me know if it does. If not feel free to give me a shout. Best of luck.