The exclamation "gah!" - what emotion does it mean? what Russian interjection is the closest?

Good grief - it's translated as "Боже мой" or "Какой ужас", but I had a feeling it's used in a more ironic way than that.