what in tarnation?

What in tarnation is an idiom which was originated in the southern states of the United States, primarily those south of the Mason Dixon line. It is a phrase that is used to describe surprising or shocking situations as an expression to something being done or said which is very surprising to you. It is another way to say what the hell was that? This idiom is used to express your surprise for something that has just occurred.