This is an appeal from an order dismissing appellant Barbara Cheng’s complaint for divorce and economic relief *517 for lack of subject-matter jurisdiction. We reverse and remand.
Barbara and appellee Thomas Cheng were married on May 31, 1957, in Phoenixville, Pennsylvania. They moved from Pennsylvania but returned in 1969. They separated on July 8, 1978, and Thomas relocated in South Carolina, establishing residency there in July, 1980.
On June 23, 1981, Thomas filed a complaint in divorce in South Carolina. Unable to perfect personal service on Barbara, the defendant in that action, Thomas notified her through publication. Barbara answered Thomas’s South Carolina complaint and counterclaimed for equitable distribution, counsel fees and costs, and alimony. She had filed a complaint in divorce in the Northampton County Court of Common Pleas in Pennsylvania on August 19, 1981, seeking a divorce, equitable distribution, alimony, costs and expenses, and support for the parties’ remaining minor child; Northampton County is where Barbara and the child reside and the former marital home is located. A master was appointed on November 18, 1981, to preside over the Pennsylvania action.
Thomas appeared through counsel in Barbara’s Pennsylvania action on December 29, 1981, and filed preliminary objections, raising his prior, pending action in South Carolina as a defense. Upon Barbara’s motion, Thomas’s objections were stricken as having been untimely filed. Thomas then answered Barbara’s complaint, denying her averment that there was no prior pending action and alleging the pendency of his own South Carolina action.
On March 19, 1982, Thomas and counsel for Barbara appeared in the South Carolina action. Barbara’s counsel initially challenged Thomas’s motion to sever the divorce claim therein from the economic claims raised in Barbara’s counterclaim. However, counsel for both parties finally stipulated that Barbara would not oppose the motion to sever if Thomas signed and recorded, in the Northampton County court, a stipulation which would ensure that court’s jurisdiction over the other collateral, economic matters. *518 The parties also agreed to stay the South Carolina proceedings on Barbara’s counterclaim, with the South Carolina court’s jurisdiction preserved, pending resolution of the economic issues in the Pennsylvania court. The South Carolina court issued a decree in divorce a.v.m. on April 20, 1982.
The master in Barbara’s Pennsylvania action held a hearing on the economic claims on April 13, 1983. Barbara, her counsel, and counsel for Thomas attended. The master found that Barbara’s claim for post-divorce alimony was both well-founded and viable under Pennsylvania law. However, the master recommended that alimony be denied because Pennsylvania lacked subject-matter jurisdiction over Barbara’s divorce action. The Northampton County court agreed, denying Barbara’s exceptions to the master’s report and dismissing her complaint.
Appellant Barbara now claims:
1) that the trial court erred in holding that it lacked jurisdiction to grant post-divorce alimony in the instant case because of the decision in Sohmer v. Sohmer,318 Pa.Super. 500 ,465 A.2d 665 (1983);
2) that the trial court erred in questioning whether appel-lee Thomas’s prior pending action vitiated Pennsylvania’s jurisdiction over the subject matter when, in fact, that specific issue had been raised in Thomas’s preliminary objections, which were dismissed as untimely;
3) that the trial court erred in concluding that, although the case at bar is factually distinguishable from Sohmer v. Sohmer, supra, those distinctions are not material; and
4) that the holding of Sohmer v. Sohmer directly conflicts with the legislative findings and intent expressed in the Divorce Code of 1980 and with the Commonwealth’s long-standing public policy on the sanctity of marriage.
We find appellant’s second contention to be of no consequence. The court shall dismiss an action whenever it appears by suggestion of the parties or otherwise that the court lacks subject-matter jurisdiction. Pa.R.Civ.P. 1032(2). *519 That appellee’s objection to appellant’s complaint on this basis was dismissed as untimely is irrelevant. Likewise, as will be discussed below, we do not find our previous decision in Sohmer v. Sohmer to be contrary to the intent of the Divorce Code or the policy of this Commonwealth. However, we agree with appellant’s first and third contentions, and therefore reverse the instant order and remand.
Both parties, as did the trial court, frame the key issue herein as one of jurisdiction. The test of subject-matter jurisdiction is simply whether the court is competent or has the power to hear and determine controversies of the general class at issue, not whether the court might ultimately decide that it cannot grant relief in the particular case before it.
In re Jones & Laughlin Steel Corp.,
The Divorce Code of 1980, 23 P.S. §§ 101-801 (1980 Code), was enacted to modernize Pennsylvania’s domestic relations law and to harmonize it with the laws of other states.
Chaney v. Chaney,
(a) ...
(6) Effectuate economic justice between parties who are divorced or separated and grant or withhold alimqny according to the actual need and ability to pay of thé partjies and insure a fair and just determination and settlement of their property rights.
(b) The | objectives set forth in subsection (a) shall be considered in construing provisions of this act and shall be regarded as expressing the legislative intent.
23 P.S. § 102(a)(6), (b) (emphasis supplied). Clearly, the 1980 Code permits post-divorce alimony in appropriate situations. Ch
aney supra,
343 Pa.Superior Ct. at 84,
To apply this policy, the 1980 Code grants the courts of this Commonwealth brbad jurisdiction.
(a) The ¡courts of this Commonwealth ... shall have original jurisdiction in cases of divorce ... and, where they have jurisdiction, shall determine in conjunction with any decree granting a divorce or annulment the following matters, where raised in the complaint or the answer and issue appropriate decrees or orders with reference thereto and may retain continuing jurisdiction thereof:
(1) ... the order of any alimony____
23 P.S. § 301(a)(1). Specifically, the Code provides:
In all matrimonial causes, the court shall have full equity power and jurisdiction and may issue injunctions or *521 other orders which are necessary to protect the interests of the parties or to effectuate the purposes of this act, and may grant such other relief or remedy as equity and justice require....
23 P.S. § 401(c) (emphasis supplied).
The Pennsylvania Legislature has also spoken on the availability of alimony after an ex parte divorce:
§ 505. Alimony where a foreign ex parte divorce or annulment
Whenever a person who was a resident of this Commonwealth at the time such person was a defendant or respondent in a foreign ex parte action for annulment or divorce petitions a court of this Commonwealth for alimony and establishes the need therefor, such court, if it has jurisdiction over the person or property of the other party, may order that such alimony be paid in the same manner and under the same conditions and limitations which pertain when alimony is sought as provided in this chapter. In the event that the other party from whom such alimony is sought cannot be located within this Commonwealth, the court may attach such of the tangible or intangible property of said party as is within the jurisdiction of the court in the manner provided by the Rules of Civil Procedure, except that no exemption shall apply. Such property shall thereupon be subject to the payment of alimony in the same manner as provided by law in actions for nonsupport.
23 P.S. § 505 (emphasis supplied).
“[Ijndividual provisions in a comprehensive legislative scheme ... should not be read abstractly, but rather with a view to their place in the entire structure.”
Sohmer, supra,
The 1980 Code “aims to foster economic justice,”
Young, supra,
320 Pa.Superior Ct. at 277,
Our interpretation of Section 505 also upholds this state’s interest in resolving the divorce actions of its domiciliaries. Where, as here, the spouses have separate domiciles, each state of domicile has an interest in the parties’ marital status.
See
Restatement (Second) of Conflict of Laws § 71 (1971). Each state will apply its own law, in actions brought there, to determine its domiciliary’s right to a divorce.
Id.
at § 285. The doctrine of divisible divorce recognizes these principles by allowing the more interested forum to adjudicate the varied rights of its domiciliaries.
Estin v. Estin,
In the instant case, both parties rely, as did the trial court, on
Sohmer v.
Sohmer's interpretation of Section 505 as dispositive of the question presented. The appellant in
Sohmer
filed for a divorce in Pennsylvania. Her husband then filed in Virginia, and the appellant appeared through counsel in that action. The Virginia court granted a divorce a.v.m., but left open the question of alimony. We denied the appellant’s claim for post-divorce alimony, holding that the doctrine of divisible divorce does not apply where a party has appeared in the foreign proceeding.
Sohmer, supra,
Appellee Thomas now argues that Sohmer v. Sohmer bars appellant Barbara’s claims, because she appeared through counsel in the South Carolina divorce proceeding. However, our reading of Section 505 in Sohmer v. Sohmer can be harmonized with Sections 301 and 401, given the facts of the instant case. Accordingly, we will interpret Section 505 to allow appellant Barbara Cheng to seek post-divorce relief. We reach that conclusion in order to promote the policies of the 1980 Code and to acknowledge the compelling factual distinctions between Sohmer v. Sohmer and the case now before us.
The decree in
Sohmer v. Sohmer
was not specific, nor was it conditioned upon stipulations by the parties; rather, it left open the question of alimony. The decree seemingly preserved jurisdiction as an after-thought, speaking generally of “this or any other Court” empowered to “adjudicate the property rights of the parties in this or any other jurisdiction.”
Id.,
318 Pa.Superior Ct. at 503 n. 1,
By contrast, the South Carolina court in the present case specifically conditioned its issuance of a divorce decree on the parties’ agreement to resolve their economic and property disputes in Pennsylvania. Second, appellee Thomas filed a stipulation, in the Northampton County court, which provided that all ancillary matters were reserved for that court’s determination. In that stipulation, a condition precedent to the divorce decree, Thomas consented to the Pennsylvania court’s resolution of these matters; the South Carolina court had expressly stated that its decree was not final on alimony or any other economic or property issue. The decree clearly noted that Barbara’s objections to Thomas’s motion to sever would be withdrawn if Thomas agreed to Pennsylvania’s jurisdiction over the collateral economic matters to be resolved between the parties. The decree was, therefore, obviously not a final determination of the economic and property issues; it spoke instead only on the question of the divorce itself. Full faith and credit requires us to recognize and enforce the South Carolina decree insofar as it grants the parties a divorce, which indeed is all that that decree purports to do. See Estin v. Estin, supra; Stambaugh v. Stambaugh, supra; Restatement (Second), supra at § 107. 2
*525
In addition, the parties’ stipulations did not confer jurisdiction on a Pennsylvania court which would otherwise not exist.
Compare Sohmer, supra,
318 Pa.Superior Ct. at 505,
For this reason, the South Carolina court properly refused to decide any financial or property issues, because property matters in a divorce case are within the jurisdiction of the state where that property is located. We have already had occasion to examine this aspect of dual-state divorces, in
Taddei v. Taddei,
In
Taddei,
the parties received a divorce decree from a New Jersey court. The petitioner in that action then brought suit in a Pennsylvania court for partition of the marital property and for accountings of that property. The respondent answered and counterclaimed for sole ownership of the former marital home, equitable distribution of other marital property, support and alimony. This counterclaim was dismissed with prejudice. Although the major issue in
Taddei
was the retroactive application of the 1980 Code, we stated that a court cannot exercise jurisdiction over property outside its own state.
Id.,
299 Pa.Superior Ct. at 322,
Furthermore, regarding Section 505’s language on ex parte proceedings, in addition to the distinctions between this case and Sohmer v. Sohmer, the present facts clearly illustrate the inequity which would result from our assertion that the South Carolina proceeding in this case was not ex parte because Barbara appeared there through counsel.
A judicial proceeding is “ex parte” if one party applies to the court for and is awarded relief without the presence or even the knowledge of the other party, who may be affected or bound by the proceeding without having had his or her constitutionally protected opportunity to appear and be heard.
See Gliwa v. United States Steel Corp.,
For appellant Barbara Cheng, the South Carolina divorce proceeding was essentially ex parte, in operation if not in form. Although she “appeared” in that proceeding, she had no real opportunity to have her claims fully and finally litigated there because that court specifically said that it would not — in part because it could not — decide the economic and property issues which she had raised. She has yet to litigate any such claims, and cannot fairly be said to have had an opportunity to be heard in another forum, where that forum expressly and correctly declined to hear and decide them.
*527
Finally, jurisdiction in this case is founded not only upon the location of marital property in Pennsylvania but also upon the mandate of Section 401(c), quoted
supra.
That provision does not limit our courts to awarding pendente lite remedies, but is meant to fulfill the policies of the 1980 Code, including the doing of economic justice between divorced parties, as stated in Section 102(a)(6).
Lehmicke v. Lehmicke,
In conclusion, while both the South Carolina and Pennsylvania courts had jurisdiction for purposes of granting a divorce to the parties in the instant case, the Northampton County court had the jurisdiction enabling it to decide property matters between the parties, where the property at issue is located in this state. Likewise, the court was empowered by Section 401(c) to hear appellant’s arguments for economic relief. The trial court thus erred in ruling *528 that it lacked jurisdiction to entertain appellant’s complaint. 3 Its order dismissing that complaint is therefore reversed and remanded with instructions to proceed in light of our holding herein.
Order reversed; remanded for further proceedings consistent with this opinion; jurisdiction is relinquished.
Notes
. With this statement, we summarily dismissed in Sohmer v. Sohmer the appellant’s elaim that the above-quoted Section 301(a) gave the court jurisdiction to hear her petition for alimony. As will be seen, the case now before us can be distinguished from Sohmer v. Sohmer and jurisdiction grounded in Section 401(c), a portion of the 1980 Code with which we were not there confronted.
. The United States Constitution requires each state to give full faith and credit to the final adjudications of every other state. U.S. Const. art. IV, § 1;
see also Schifano v. Schifano,
. Of course, to the extent that appellant’s complaint sought a divorce in addition to the economic relief, that issue is moot.
