In cases tried by the court, either party may take bills of exception, and have an appeal, as in case of trial by jury.