If in the progress of any trial before a county court it shall appear that the defendant ought to be put upon his or her trial for an offense not cognizable before such court, the court shall immediately stop all further proceedings before the court and proceed as in other criminal cases exclusively cognizable before the district court.
Neb. Rev. Stat. §§ 29-615