A 26-year-old Oregon man serving as a juror in an armed-robbery case was ordered jailed for two days after he was caught texting during the trial, the Marion County Sheriff's Department said Thursday.

When prosecutors were playing a video-taped interview with the defendant, Judge Dennis Graves suddenly halted the trial after noticing a light glow around juror Benjamin Kohler's chest. The judge, who had previously instructed jurors to pay attention and not to use mobile phones, immediately halted the proceeding and ordered everybody to vacate the courtroom except Kohler, the Sheriff's Department said.

The authorities said Kohler "had no explanation for his actions."

The judge declared him in contempt, and ordered the juror jailed for two days at Marion County Jail. The judge said he wanted to teach Kohler a lesson.

"The duty to serve as a juror must be taken very seriously. Every juror has the responsibility to devote his entire attention to the witnesses and evidence being presented," the judge said in a statement. "In this case, Mr. Kohler failed to meet his obligations and failed to honor the direction of this court. My hope is that he will use his time in jail to reflect upon his behavior."

An alternate juror filled Kohler's spot, and the defendant was found guilty of armed robbery, the Sheriff's Department said.