Used in place of a swear word when one happens to be inconvenient (such as when one's girlfriend's parents are around). It is meant to replace an interjection, such as when one screws up or gets injured.