When you purchased the ticket, you had an option to purchase travel insurance which covers exactly this kind of stuff. Or maybe you purchase an annual policy or the CC you used includes it.
If you don't have insurance and you purchased a non-refundable ticket, you are most likely SOL.