got a shock.
"Getting a shock" can mean either experiencing a sudden, unpleasant surprise or feeling a painful sensation from electricity. In the first case, it's an emotional reaction to something unexpected and upsetting. In the second, it's a physical sensation caused by electrical current flowing through the body.
정전기가 일다