An exception is an objection taken to a decision of the court or judge upon a matter of law.
R.L. 1910, § 5026.