upon the trial of the cause, and in all proceedings therein, when the witness is sick, out of the State, dead, or persistent in refusing to testify despite an order of the judge to do so, or when the witness's personal attendance cannot be had in court.
NRS 171.198