A hearing by the judge in the course of, but apart from, the main trial (and in the absence of the jury where the trial is by jury), in order to settle a question raised by either party concerning any fact which has to be assumed for the purposes of the trial proper, eg the hostility, expertise, or competence of witnesses, or the voluntariness of confessions. It is sometimes called the “trial within a trial”.