You should not lose your job by exposing illegal actions at your workplace. Sometimes employers retaliate against whistleblowers by concocting an excuse to fire them. However, employers have various obligations towards their workers. Sudden termination of your job could constitute violating one of these requirements.
According to Entrepreneur, there are different actions an employer could take against you that may qualify as wrongful termination of your job.
Treating you differently than other employees
Civil rights laws protect workers from divergent treatment. This means an employer cannot treat you differently from other workers on account of your race, gender or other protected characteristics. Your workplace should also apply company policies equally to all employees. You could be the target of retaliation if you receive harsher punishments than other workers for company violations.
Harassing you to make you quit
Some employers hope that if they make the life of a worker miserable enough, the employee will just quit. However, this does not get the employer off the hook. A court may determine that the departure of the employee was a constructive discharge, which is a form of wrongful termination.
Breaching your contract
Your employer may have signed an employment contract with you. Your contract probably describes terms for your employment, including performance thresholds and conduct standards. A sudden termination without cause could constitute a breach of contract and subject your employer to penalties.
Even if your employer attempts to get around civil rights laws, there are a variety of ways to find out if an employer has broken other obligations to you. You may have other legal options in addition to a whistleblower complaint.