LOS ANGELES — Jim Carrey says a wrongful death lawsuit filed by the estranged husband of his ex-girlfriend is a heartless attempt to exploit him and vowed to fight the case.

Mark Burton of Portland sued Carrey in Los Angeles Superior Court on Monday, accusing the actor of providing the prescription drugs his wife Cathriona White used to overdose in September 2015. The wrongful death lawsuit contends Carrey improperly obtained prescriptions for Ambien and the powerful opioid oxycodone under the alias Arthur King.

The suit accuses Carrey of giving White the medications days before she was found dead in one of Carrey’s homes. White and Carrey dated in 2012 and were photographed together in May 2015.

“What a terrible shame,” Carrey wrote in a statement. “It would be easy for me to get in a back room with this man’s lawyer and make this go away, but there are some moments in life when you have to stand up and defend your honor against the evil in this world.

“I will not tolerate this heartless attempt to exploit me or the woman I loved,” Carrey wrote.

Coroner’s officials ruled the 30-year-old makeup artist’s death a suicide.

Burton and White married in 2013. A coroner’s official told reporters that the pair were separated and planned to divorce.

Burton’s attorney Michael Avenatti declined to characterize their relationship beyond saying they were legally married at the time of White’s death.