@Chief
I would say that your choice of words is perfect: "Irony"
Irony, from the Greek ειρων (self-deprecator), is a literary or rhetorical device in which there is a gap or incongruity between what a speaker or a writer says, and what is generally understood (either at the time, or in the later context of history). Irony may also arise from a discordance between acts and results, especially if it is striking, and known to a later audience. A certain kind of irony may result from the act of pursuing a desired outcome, resulting in the opposite effect, but again, only if this is known to a third party. In this case the aesthetic arises from the realization that an effort is sharply at odds with an outcome, and that in fact the very effort has been its own undoing.
More generally, irony is understood as an aesthetic valuation by an audience, which relies on a sharp discordance between the real and the ideal, and which is variously applied to texts, speech, events, acts, and even fashion. All the different senses of irony revolve around the perceived notion of an incongruity, or a gap, between an understanding of reality, or expectation of a reality, and what actually happens.
There are different kinds of irony. For example:
Tragic (or dramatic) irony occurs when a character onstage is ignorant, but the audience watching knows his or her eventual fate, as in Sophocles’ play Oedipus the King.
Socratic irony takes place when someone (classically a teacher) pretends to be foolish or ignorant, but is not (and the teaching-audience, but not the student-victim, realizes the teacher's ploy).
Cosmic irony is a sharp incongruity between our expectation of an outcome and what actually occurs.
H. W. Fowler, in Modern English Usage, had this to say of irony:
Irony is a form of utterance that postulates a double audience, consisting of one party that hearing shall hear & shall not understand, & another party that, when more is meant than meets the ear, is aware both of that more & of the outsiders’ incomprehension.[1]
Irony has some of its foundation in the onlooker’s perception of paradox. For example, in June, 2005, the State of Virginia Employment Agency, which handles unemployment compensation, announced that they would lay off 400 employees for lack of work because unemployment is so low in the state. The reader’s perception of a disconnection between common expectation, and the application of logic with an unexpected outcome, both has an element of irony in it and shows the connection between irony and humor, when the surprise startles us into laughter. Not all irony is humorous: “grim irony” and “stark irony” are familiar.