Commonly used in Northern Ireland for when something bad happens to a person, can be used in a joking manner or serious all depending on how you empasise the words. For extreme cases of misfortune a swear word should be added to the end.
"ha gee u dropped your phone"
"Oh no I dropped my phone in piss" reply:"ha gee"
"Ha gee dickhead
I robbed your granny"