Plaintiff Shelley Austin Wood initiated this action against defendants for injuries sustained on 31 March 1998 when she was assaulted on the second floor of the Guilford County courthouse (the courthouse). Plaintiff was employed by the Administrative Office of the Courts (AOC) and worked in the courthouse. Plaintiffs assailant was subsequently convicted of attempted first-degree rape and assault with a deadly weapon inflicting serious injury.
*163 On 30 July 1999, plaintiff filed a complaint against Guilford County (the County) and Burns International Security Services Corporation f/k/a Borg-Wamer Professional Services Corporation (Burns Security), the firm contracted by the County to provide security at the courthouse, alleging the following claims for relief: (1) the County breached its duty by failing to provide adequate security at the courthouse; (2) Burns Security breached its duty by failing to provide adequate security at the courthouse; (3) as a result of the County’s willful and wanton conduct, plaintiff was entitled to punitive damages; and (4) plaintiff, as an AOC employee stationed at the courthouse, was an intended third-party beneficiary of the security contract between the County and Burns Security, which both breached the contract by failing to provide reasonably adequate security at the courthouse.
In its answer, the County asserted governmental immunity and the public duty doctrine as complete bars to plaintiff’s action and moved to dismiss the complaint on the ground that plaintiff failed to state a claim for relief under North Carolina Rule of Civil Procedure 12(b)(6). The County also alleged that punitive damages were not recoverable against a local government under North Carolina law.
On 29 March 2000, the trial court entered an order granting the County’s motion to dismiss with respect to plaintiff’s punitive damages claim but denying the motion with respect to plaintiff’s negligence and breach of contract claims. On 7 April 2000, the County filed an interlocutory appeal from the trial court’s order. On 15 May 2001, the Court of Appeals entered a decision affirming the trial court’s denial of the County’s motion to dismiss the negligence claims and reversing the trial court’s order with respect to the breach of contract claim. This Court allowed the County’s petition for discretionary review on 22 August 2001 to determine (1) whether the Court of Appeals erred in failing to hold that the trial court lacked subject matter jurisdiction over the action, and (2) whether the Court of Appeals erred in failing to determine that plaintiff’s claims were barred by the public duty doctrine and governmental immunity.
The County initially raised the defense of subject matter jurisdiction in the Court of Appeals. It argues before this Court that the North Carolina Workers’ Compensation Act (the Act) provides the exclusive remedy for a state employee injured while working in a building maintained by the County and that this case should therefore have *164 been brought before the North Carolina Industrial Commission (the Industrial Commission). Plaintiff argues that the trial court had subject matter jurisdiction over the instant action because the Act does not extend to the type of relationship existing between the County and the State of North Carolina.
At the outset we note that “[t]he question of subject matter jurisdiction may be raised at any time, even in the Supreme Court.”
Lemmerman v. A.T. Williams Oil Co.,
It is well settled that the Act provides the exclusive remedy when an employee is injured by accident arising out of and in the course and scope of employment.
See
N.C.G.S. § 97-10.1 (1999);
Bryant v. Dougherty,
North Carolina law requires counties to provide facilities for the operation of the state’s judicial system: “In each county in which *165 a district court has been established, courtrooms . . . and related judicial facilities (including furniture), as defined in this Sub-chapter, shall be provided by the county.” N.C.G.S. § 7A-302 (1999). In addition to providing judicial facilities, the County elected to provide security for the courthouse through a contract negotiated with Burns Security. The County argues that by providing the courthouse, as well as the security for the courthouse, it was conducting the state’s business and therefore was acting as an agent of the state, making the Industrial Commission the proper forum for this action. We disagree.
The County was not employed by the state, nor was it required by the express terms of N.C.G.S. § 7A-302 to provide security for the courthouse. The AOC is responsible for administering the state’s judicial system. By providing judicial facilities and contracting with a private security company, the County was not assisting the AOC, nor was the County conducting the business of the AOC for purposes of N.C.G.S. § 97-9. Insofar as its provision of the building and security was concerned, the County remained a stranger to the actual employment relationship existing between plaintiff and the state. Accordingly, we reject the County’s argument that the Industrial Commission provided the exclusive forum for the instant action.
The County next argues that the trial court erred by denying its Rule 12(b)(6) motion to dismiss plaintiff’s negligence claim on grounds of the public duty doctrine and governmental immunity. Plaintiff argues that both the trial court and the Court of Appeals correctly determined that the public duty doctrine is unavailable to the County and, furthermore, that the County waived its governmental immunity by contracting with Burns Security and requiring that “[the County] be named as an additional insured on the Defendant Burns’ liability insurance policy.”
We observe that “[a] waiver of governmental immunity . . . does not give rise to a cause of action where none previously existed.”
Lynn v. Overlook Dev.,
*166
On a Rule 12(b)(6) motion to dismiss, the question is whether, as a matter of law, the allegations of the complaint, treated as true, state a claim upon which relief can be granted.
Isenhour v. Hutto,
Actionable negligence occurs only where there is “a failure to exercise proper care in the performance of some legal duty which the defendant owed the plaintiff, under the circumstances in which they were placed.”
Mattingly v. N.C. R.R. Co.,
In
Braswell,
this Court also recognized that while the public duty doctrine is a necessary and reasonable limitation on liability, there are two well-established exceptions to the doctrine that prevent inequities to certain individuals: (1) when there is a special relationship between the injured party and the police; and (2) when a municipality creates a special duty by promising protection to an individual.
Id.
at 371,
As applied to local government, this Court has declined to expand the public duty doctrine beyond agencies other than local law enforcement departments exercising their general duty to protect the
*167
public.
Thompson v. Waters,
While this Court has extended the public duty doctrine to state agencies required by statute to conduct inspections for the public’s general protection, see Hunt v. N.C. Dep’t of Labor,348 N.C. 192 ,499 S.E.2d 747 (1998); Stone v. N.C. Dep’t of Labor,347 N.C. 473 ,495 S.E.2d 711 , cert. denied,525 U.S. 1016 ,142 L. Ed. 2d 449 (1998), we have never expanded the public duty doctrine to any local government agencies other than law enforcement departments when they are exercising their general duty to protect the public, see Isenhour[,350 N.C. at 604 ,517 S.E.2d at 124 ] (refusing to extend the public duty doctrine to shield a city from liability for the allegedly negligent acts of a school crossing guard). . . . Thus, the public duty doctrine, as it applies to local government, is limited to the facts of Braswell.
In light of the fact that we have previously delineated the boundaries of the public duty doctrine — as applied to local government — to the provision of police protection,
see id.,
the first issue we must address is whether the County, in providing security at the courthouse, was providing a service analogous to police protection to the general public. The Court of Appeals reasoned that the public duty doctrine was inapplicable to the present case because “[defendant, as a local government, was not acting in a law enforcement capacity or exercising its general duty to protect the public by providing security to the Courthouse, but was acting as owner and operator of the Courthouse.”
Wood v. Guilford Cty.,
The Court of Appeals’ holding that the public duty doctrine does not preclude local government liability to an individual injured by the intentional criminal act of a third party is inconsistent with the conceptual underpinnings of the public duty doctrine as recognized in
Braswell:
that local government’s duty to protect against crime flows to the general public rather than to specific individuals.
Plaintiff argues before this Court that because the hired security guards were not sworn public officers with the full panoply of authority reserved to those in law enforcement (i.e., the power to arrest, to investigate crimes, to operate the County jail, to enforce safety statutes, and to serve warrants and civil court documents), they are not part of a law enforcement department, as required by the language in Lovelace, nor are they providing police protection, as required by Braswell. In our view, this is an overly literal reading of the limitations we have placed on the public duty doctrine as applied to local governments in Lovelace, and an overly narrow interpretation of the doctrine itself as articulated in Braswell. The test of whether the public duty doctrine applies is a functional one and includes consideration of the nature of the duty assumed by the local governmental defendant.
For example, in
Isenhour,
the plaintiffs son was struck by a car and killed after a school crossing guard, stationed at an intersection by the City of Charlotte, gave the child permission to cross the street.
In the instant case, the protective services provided at the courthouse through the County’s contract with Burns Security are analogous to the police protection provided to the general public in Braswell. The rationale underlying the public duty doctrine is thus *169 applicable. The courthouse security guards were employed to provide protective services, as was the crossing guard in Isenhour, but the group the guards were called upon to protect can hardly be characterized as “identifiable,” as plaintiff argues. Rather, the protective services provided by Guilford County were intended to benefit the public at large, including those members of the public who worked at the courthouse. Specifically, the protective duty undertaken by the courthouse security guards was not limited in scope to the same degree as the crossing guards in Isenhour in respect to time (all day in the present case, as opposed to the specific time periods when children were going to or coming from school in Isenhour), place (a whole courthouse building here, as opposed to one narrow strip of road in Isenhour), intended beneficiaries (all people entering the building in the instant case, as opposed to schoolchildren only in Isenhour) and purpose (the general safeguarding of the public from a multitude of dangers at the courthouse in the instant case, as opposed to the singular purpose of safeguarding schoolchildren from the hazards of vehicular traffic coming from predictable directions in Isenhour).
As we have stated on numerous occasions, the public duty doctrine exists to prevent the imposition of an overwhelming burden of liability on governmental agencies with limited resources.
Stone,
Having determined that the public duty doctrine bars plaintiff’s civil action against the County, we next determine whether either of the recognized exceptions to the doctrine applies. In
Braswell,
we reiterated the example that most commonly gives rise to the special relationship exception to the public duty doctrine: the relationship between the police department and a state’s witness or informant who has aided law enforcement officers.
Braswell,
The second recognized exception to the public duty doctrine examines whether a “special duty” arose to a particular individual. Plaintiff must show that an actual promise was made to create a special duty, that this promise was reasonably relied upon by plaintiff, and that this reliance was causally related to the injury ultimately suffered by plaintiff.
See id.
“[T]he ‘special duty’ exception to the general rule against liability of law enforcement officers for criminal acts of others is a very narrow one; it should be applied only when the promise, reliance, and causation are manifestly present.”
Id.
at 372,
In the present case, as already indicated, the County had a statutory responsibility to provide facilities for operation of the state’s judicial system. See N.C.G.S. § 7A-302. The statute does not contain any language to suggest the creation of a special duty, however, whereby the County owed employees working in the courthouse greater protection than that owed to the general public using the courthouse. Moreover, the record is devoid of any allegation that the County made a promise to plaintiff to protect her against third-party criminal assaults. Accordingly, as the pleadings fail to allege the existence of a special duty, this exception to the doctrine is inapplicable.
Plaintiff further alleges that the County waived its protection under the public duty doctrine. By hiring a security firm, plaintiff asserts, the County created a duty to courthouse tenants and their employees. This argument essentially restates in different terms the special duty exception to the public duty doctrine. In any event, by contracting with Bums Security, the County was merely executing the law enforcement duties required of it as a local governmental entity.
See Southern Ry. Co.,
As previously stated, the issue of whether a duty is owed to a claimant alleging negligence logically precedes the issue of a waiver of governmental immunity. As the County owed no duty to plaintiff *171 individually, the public duty doctrine operates to foreclose liability against the County on plaintiffs negligence claim. Consequently, we do not address governmental immunity or plaintiffs allegation of waiver of governmental immunity. We express no opinion as to plaintiffs negligence claim against Burns Security at this stage of the proceedings in the trial court.
Accordingly, the Court of Appeals’ conclusion that the trial court properly exercised jurisdiction over plaintiff’s civil claims against the County is affirmed. The Court of Appeals’ determination that the public duty doctrine was inapplicable in the present case is reversed. This case is remanded to the Court of Appeals for further remand to the trial court for further proceedings consistent with this opinion.
AFFIRMED IN PART AND REVERSED AND REMANDED IN PART.
