Irony is the state that occurs when what happens or what exists is the opposite of what is expected.
Verbal irony is specifically when a person says something that is contrary to fact in order to make a point rather than to deceive. Sarcasm is a type of verbal irony.