(1) Notwithstanding anything contained in this Act, a person shall not be guilty of contempt of court for publishing a fair and a accurate report of a judicial proceeding before any court sitting in chambers or in camera except in the following cases, that is to say,-
where the publication is contrary to the provisions of any enactment for the time being in force;
where the court, on grounds of public policy or in exercise of any power vested in it, expressly prohibits the publication of all information relating to the proceeding or of information of the description which is published;
where the court sits in chambers or in camera for reasons connected with public order or the security of the State, the publication of information relating to those proceedings;
where the information relates to a secret process, discovery or invention which is an issue in the proceedings.