In April, 1853, The Lake Erie, Wabash and St. Louis Railroad Company contracted with Boody, Ross & Co. for the construction of their railroad.
In May, 1853, Boody, Ross & Co. contracted with Otis, Johnson & Co., for the construction of a portion of said road.
In January, 1854, Otis, Johnson & Co. contracted with Eckler & Co., for the completion of a portion of the road, the construction of which had been undertaken by said Otis, Johnson & Co. Otis, Johnson & Co. were to pay Eckler & Co., as to times and proportions, the same as they were to be paid by Boody, Ross & Co.
During the progress of the work a suspension, pursuant to a right reserved, was ordered by the railroad company, and notice thereof given by the company to Boody, Ross & Co., and by them to Otis, Johnson & Co., and by them to Eckler & Co. Eckler & Co. then sued the railroad company, Boody, Ross & Co., and Otis, Johnson & Co., jointly, and charged for work done and not paid for, and for damages for a wrongful suspension of the work, &c. They obtained judgment against the railroad company, for the balance due for work done.
We do not see how this suit can be sustained against the railroad company or Boody, Ross & Co. It cannot be, under the old chancery rule, enacted into the code, that all parties in interest should be joined; for neither the railroad company, nor Boody, Ross & Co., have any interest in the controversy arising between Otis, Johnson & Co., and Eckler & Co., but of an alleged breach of contract; and, to bring them within the rule, the defendants must *68have some common interest in the subject-matter of the suit.
It cannot be sustained on the ground of trust; for the contract did not provide that Felder & Co. were to be paid 0U1 of the funds to be paid to Otis, Johnson & Co., by their employers; and if it had, neither-those employers nor the railroad company were parties to the contract. Under the old system of practice, the remedy in this case would have been at law, not in chancery.
The case is one of contract, and the remedy is between the parties to the contract.
As a general proposition of law, a sub-contractor cannot pass by his immediate employer, and sue the principal or proprietor of the work; because such is not the legal effect of the contract. See McCluskey v. Cromwell, 1 Kern. 593. The cases of Faunce v. Burke, 16 Penn. R. 469, and The Philadelphia, &c., Railroad Co. v. Howard, do not seem to have any bearing upon this question. Our statute provides as follows:
“Sec. 649. Any sub-contractor, journeyman, or laborer-employed in the construction or repair, or furnishing materials for, any building, may give to the owner thereof notice in writing, particularly setting forth the amount of his claim, and service rendered, for which his, employer is indebted to him, and that he holds the owner responsible for the same; and the owner shall be liable for such claim, but not to exceed the amount due from him to the employer at the time of notice, which may be recovered in an action.” 2 R. S. p. 182.
But no attempt has been made to bring the case at bar within this provision.
Our statute further provides—
“ Sec. 522. After the issuing or return of an execution against the property of the judgment-debtor, or any one of the several debtors in the same judgment, and upon an affidavit that any person or corporation has property of such judgment-debtor, or is indebted to him in any amount, which, together with other property claimed by *69him as exempt from execution, shall exceed the amount of property so exempt by law, such person, corporation, or any member thereof, may be required to appear and answer concerning the same as above provided.” 2 R. S. p. 153.
R. C. Gregory, R. Jones, S. A, Huff, Z. Baird, and J. M. La Rue, for the appellants (1). G. Gardner, for the appellee (2)._ And further sections point out the mode in which any credits admitted may be reached. See Brisco v. Askey, 12 Ind. R. 666.
These provisions of the statute have not been pursued; and yet they are enacted upon the hypothesis that such a suit as this at bar cannot be sustained.
Per Curiam.The judgment is reversed with costs. Cause remanded, &c.