Check out Irony and Sarcasm by rogersgeorge. Here is an excerpt:
What’s the difference?
Irony: a figure of speech in which you say (or write) the opposite of what you mean in such a manner that your listener (or reader) can tell what you actually mean.
This statement (last panel) is an example of irony.