The question principally argued by the counsel for the appellant, is not, I think, necessarily involved in the decision of this case. That question is, whether in actions brought by the people, counter-claims or set offs can be interposed by the defendant, the samé as in actions prosecuted by individuals. Neither do I think it necessary to determine whether the defendants were at liberty to avail themselves of an indebtedness to the bank in this suit. The evidence offered and rejected upon the" trial, did not tend to show any indebtedness thereof, legal or equitable, in a legal sense of the latter term, of the state to the bank. That offer was to show that the states prison, at Sing Sing, had borrowed money from the bank, and had expended the same in purchasing supplies and food, &c., for the prisoners. This was the counter-claim set up in the answer, and this the defendants offered to prove, *172and it was all they offered to prove. The case states that the evidence was rejected on the sole ground that in an action by the state to recover money, no counter-claim or set off can be allowed, to which ruling the defendant’s counsel excepted. It is clear that error cannot be predicated upon the ground assigned for the ruling, , or upon which it was made, when it appears clear that any different ruling upon the question would have been erroneous. . In the present case, if the evidence offered and rejected in no possible view had a tendency to show any counter-claim by the bank against' the state, its rejection was proper, and it was wholly immaterial to the defendants upon what ground it was based. This applies only to cases where it is impossible to obviate the difficulty on trial.
It only remains to show that the evidence offered had no tendency to show any counter-claim either at law or in equity in favor of the bank against the state. This appears from the total want of authority of the agent of the prison to borrow money on the credit of the state. It was not pretended that any such authority was conferred by any act of the legislature, even if that department of the government could confer such power upon him. (See Const. § 8, art. 10.) Nor did any other department of government pretend to give him any such authority. All that appears is, that the agent wanted money for the use of the prison, and the bank loaned it to him. He had no color of authority to borrow upon the credit of the state. If he had, every canal superintendent, indeed, nearly every administrative officer possesses the same power. If this be so, it is utterly impossible to preserve any control over the state finances. It is clear that the agent had no power to borrow the money. His so doing created no equitable or legal claim against the state, cognizable by the courts. The claim is entirely analogous to that of a party who should expend money to improve the real estate of a non-resident owner, without his knowledge or assent. He would have no claim to reimbursement that could be enforced *173at law. or in equity. His only remedy would be to lay the facts before the owner, and be content with what he was willing to give. So in the present case, should the state consent to become sueable on claims by individuals, no action for this claim could be maintained by the bank. Its only remedy is an application to the legislature, and it must content itself with what that body may deem justice in the premises.
Meantime this debt of the bank to the state, for which these defendants have become sureties, should be promptly paid; and the judgment appealed from should be affirmed.
Concurring—Bocees, Sceugham, Weight and Davies.
For reversal—Hunt and Poetes.
Affirmed.