This scenario might qualify as a breach of contract, depending on the agreement you had with your employer. An employment contract or other written statement might promise job security and list only specific circumstances that you could be fired for. This information might also be in an employee handbook if it is not in the contract.