This is an action to recover damages for a refusal of the defendant to permit the plaintiffs to perform a contract in writing to put in certain wells and construct a system of waterworks for the defendant. The primary question is, whether the contract relied on, in its application to the facts, and to the contemplated mode, and the only possible mode, of performing it, was one that the defendant had a legal right to make; or, to put it in another form, whether the contract was possible of performance by the plaintiffs, if the mode of performance was restricted to that which was within the legal rights of the defendant.
The Stoughton Water Company was organized under the St. 1886, c. 240, for the purpose of supplying the inhabitants of the town of Stoughton with water. It was authorized to take water by purchase or otherwise, from certain specified sources, one of which was Knowles’ Brook. It was important to private owners, as well as to the public, that its rights, in reference to the sources from which it might draw water, should be defined and limited. Accordingly, its franchise gave it the rights mentioned and no others. As a corporation it had no powers but those given by its charter, and it could not take water and sell it to the inhabitants, either by purchasing lands and sinking wells, or otherwise^ except from the authorized sources. See Bailey v. Woburn, 126 Mass. 416, 418 ; Forbell v. New York, 164 N. Y. 522; Bassett v. Salisbury Manuf. Co. 43 N. H. 569. If it had attempted to do so, its act would have been ultra vires, and might have been prohibited in the interests of the Commonwealth, or by a private person who was injuriously affected by it. The defendant was authorized by the statute to purchase the franchise and rights of this corporation, and it exercised this authority. It succeeded to the corporation’s rights and no other's. It is limited to the same sources for its water supply as the corporation was. The only source of supply to which this contract relates, that can be used by the town, is Knowles’ Brook.
As against ordinary corporations, there are equitable' limitations upon the defence of ultra vires to actions upon contracts partly or wholly executed. See Nims v. Mount Hermon Boys’ School, 160 Mass. 177, and cases there cited. Whether this defence could be availed of effectually in the present case, if the town had not purchased the franchise and the original corporation were in the place of the present defendant, it is unnecessary
The plaintiffs do not deny this proposition, but they rest their principal contention upon the decision in Stoughton v. Paul, 173 Mass. 148, which they treat as an adjudication conclusive in their favor in this case. We do not so consider it. That was a suit in equity to set aside the conveyance of the farm to the town, and this contract was introduced incidentally, as dependent for its validity upon the ownership of the farm. It was decided that the votes of the town did not limit the authority of the water commissioners. It was assumed, upon the record then before the court, that the purchase of the farm was with reference to taking and using the waters of Knowles’ Brook. The single sentence, in the report of the finding, in reference to intercepting other subterranean waters as well as those flowing into Knowles’ Brook, and the evidence on that subject, were not introduced as showing the principal object of the purchase. The purchase of the large tract was justified on the ground that it was thought necessary for the preservation and purity of the sources of water supply, and taking the waters of Knowles’ Brook by interception and percolation was held to be permissible. In the opinion it is said that “ The only question is whether the commissioners had authority to buy the land,” and, from the beginning to the end of the opinion, it contains no reference to the contract now before the court. The validity of the present contract, in reference to the questions now raised, was not in issue, and a refusal of an injunction by a dismissal of the bill involved nothing as to the defences to the contract which might be set up in an action at
Because the contract was for the construction of waterworks in connection with a supply which the town had no legal authority to use, and because performance of the contract was impossible within limits legally permissible to the parties, the plaintiffs are not entitled to damages for the defendant’s refusal to perform it.
Exceptions sustained.