------------ occurs when a characters words mean the opposite of their literal meaning
The term you're looking for is verbal irony.
mk how about
---------- occurs when what happens is the opposite of what is expected
---------- occurs when what happens is the opposite of what is expected