A man has settled a High Court action against the Garda Commissioner and State for damages over alleged assault and false imprisonment after the Garda Emergency Response Unit mistakenly raided his flat.

Francis Foster, 58, said he has been traumatised after members of the ERU forced their way into his flat at Nicholas Street, near Christchurch Cathedral in Dublin, around 6.30am on 19 July 2013.

He sued the Garda Commissioner, the State and the Attorney General for damages, including exemplary damages, for alleged assault, false imprisonment and violation of his dwelling in breach of Article 40.5 of the Constitution.

He said he suffered trauma and shock as a result of what happened and said he is unable to sleep properly, suffers from panic attacks, flashbacks and post traumatic stress disorder, and is on medication.

The defendants accepted the wrong premises was raided but denied the claims of assault, false imprisonment, or that they had breached Mr Foster's constitutional rights.

Following talks between the parties Mr Justice John Hedigan and the jury were told by Jim O'Callaghan SC, appearing with Peter Ward SC, for Mr Foster that the matter had been settled and the case could be struck out.

No details of the settlement were revealed to the court.

One of the officers involved in the incident - Detective Garda Paul Murphy of Kilmainham Garda Station - told the court the wrong premises had been entered.

He told defence counsel John Rogers SC he immediately apologised to Mr Foster that morning.

He also expressed his regret to Mr Foster over what was "an error" and agreed with counsel that Mr Foster is a man of impeccable reputation, and someone of good name.

The events of that morning should in no way reflect on Mr Foster, Det Garda Murphy agreed.

After leaving the witness box he and Mr Foster shook hands.

Mr Foster had claimed he was walking from the bedroom to the bathroom when his front door was smashed in by three men in full riot gear.

He claimed they started shouting at him, pushed him onto his bed, physically restrained him and had guns pointed at his head.

Mr Foster said it was only when they asked him his name did he understand they were gardaí.

He said once the gardaí realised they had got the wrong person and were at the wrong address they left, leaving the front door badly damaged.

The defendants accepted they had entered the wrong dwelling as part of an investigation into a serious crime.

However it was denied guns were pointed at Mr Foster, that he was pushed to the bed or held hostage in the incident.