88. The judge or the court shall disallow all costs which, in his or its opinion, have been caused by vexatious conduct or unfounded allegations or objections, and, with a view to discouraging needless expense, shall adjudge such costs against the party by whom the same were caused, whatever be the result of the contestation.