What does Ah, balls! mean?

Ah, balls! meaning in Urban Dictionary

One other way of saying, ah shit, or oh bang, or godfuckindammit