The plaintiffs brought this action against the town of Framingham (town) alleging negligence in the issu- *802 anee of building and occupancy permits. After a trial in Superior Court, the judge granted the defendant’s motion for a directed finding on the ground that the town owed the plaintiffs no duty of care beyond that owed to the public at large. We transferred the plaintiffs’ appeal to this court on our own motion. We affirm the judgment for the town.
The judge made the following findings of fact in his memorandum of decision. The plaintiffs are the owners of a single family residence (the premises) on Badger Road in Framingham. By a letter dated February 13, 1974, the town’s department of health authorized the town’s building commissioner to issue a building permit for the construction of a one-family residence on the premises on the “condition that the lots shall be graded as to prevent low spots that will not drain and create a public nuisance.” In addition, the letter provided that “prior to issuance of an occupancy permit, inspection by your Department, or the Town Engineer, or the Board of Health, should be performed to insure compliance with the proposed grading.” The building commissioner issued a building permit for the premises on February 15, 1974, and an occupancy permit was issued on December 18, 1975. The permits issued despite the fact that the requirements expressed in the department of health letter pertaining to the proposed grading and proper drainage were not met. On December 22, 1975, the builder conveyed the premises to the plaintiffs.
Beginning in March, 1978, the plaintiffs began experiencing serious flooding on the premises. The basement, garage, and driveway became flooded and large portions of their lawn were covered by water over one inch deep. Shortly afterward, large cracks developed in the foundation walls. The flooding condition has continued during periods of heavy precipitation.
We first consider the threshold question whether G. L. c. 258, as appearing in St. 1978, c. 512, § 15, the Massachusetts Tort Claims Act (Act), applies to this case. The Act applies to causes of action arising on or after August 16, 1977. St. 1978, c. 512, § 16. The judge ruled that the Act
*803
applied to this action. The town argues that it was error for the judge so to rule because the cause of action arose, at the latest, when the plaintiffs purchased the property in 1975. We see no reason why the rules applied to the accrual of a cause of action asserted under G. L. c. 258 should be different from the general rules we apply to the accrual of actions under G. L. c. 260. We find nothing in the Act which shows a legislative intent that different accrual rules apply. It is a well-settled rule that causes of action in tort generally accrue under G. L. c. 260, § 2A, at the time that the plaintiff is injured.
Cannon
v.
Sears, Roebuck & Co.,
We have also held on numerous occasions that when a cause of action in either contract or tort is based on an inherently unknowable wrong, it accrues when the injured person knows or in the exercise of reasonable diligence should know of the facts giving rise to the cause of action. See, e.g.,
Franklin
v.
Albert,
The judge ruled that, despite the fact that the Act applied to the plaintiffs’ action, they were not entitled to recover against the town because the town did not violate a duty owed to them as individuals. In addressing this issue, we start with the basic principle that the abrogation of the doctrine of governmental immunity by the Act simply removed the defense of immunity in certain tort actions against the Commonwealth, municipalities and other governmental subdivisions. It did not create any new theory of liability for a municipality. General Laws c. 258, § 2, provides that: “Public employers shall be liable for injury or loss of property or personal injury or death caused by the negligent or wrongful act or omission of any public employee while acting within the scope of his office or employment, in the same manner and to the same extent as a private individual under like circumstances . . . .” We have interpreted this language to mean that actions brought under the Act are governed by the same principles that apply to actions involving private parties.
Beurklian
v.
Allen,
In the present case, the plaintiffs argue that the building commissioner owed a specific, affirmative duty to them to enforce the building code and to issue building and occupancy permits in a nonnegligent manner. The town argues in response that the duty of the building commissioner, absent specific language to the contrary in the building code, is to ensure compliance with the building code for the benefit of the public generally and that the duty does not run to individuals in their private capacity.
The issue of whether a municipality’s failure to enforce a building code gives rise to a private cause of action is one of first impression for this court. We shall, therefore, look to the decisions of other jurisdictions which have ruled on this point. We begin with the idea that the purpose of a building code has been considered traditionally to be the protection of the general public. This rule is well stated in 7 E. McQuillin, Municipal Corporations § 24.507, at 479 (3d ed. 1981): “The enactment and enforcement of building codes and ordinances constitute a governmental function. The primary purpose of such codes and ordinances is to secure to the municipality as a whole the benefits of a well-ordered municipal government, or, as sometimes expressed, to protect the health and secure the safety of occupants of buildings, and not to protect the personal or property interests of individuals.” The traditional rule, that a building code is enacted for the benefit of the public and therefore that its violation does not give rise to a private right of action, continues to be followed by the majority of the States that have considered the question. In
Hoffert
v.
Owatonna Inn Towne Motel, Inc.,
In
Hannon
v.
Counihan,
The Florida court, in
Modlin
v.
Miami Beach,
The State of Washington follows the majority rule that a municipal ordinance generally imposes a duty which is owed to the public as a whole rather than to any particular individual. However, in
Halvorson
v.
Dahl,
For other cases that hold that a municipal ordinance creates a duty only to the public at large, and, therefore, provides no basis for an individual’s suit for damages for its breach, see
Gerneth
v.
Detroit,
Although the majority of jurisdictions that have addressed the issue adhere to the traditional public duty rule, two States, Louisiana and Wisconsin, have rejected it, and Alaska has seriously questioned it. In
Stewart
v.
Schmieder,
We have examined the State Building Code and G. L. c. 143, §§ 3 and 3A, which impose obligations upon building commissioners. There does not appear to be any language in the enactments which would warrant a finding that the Legislature intended to create private causes of action for property owners on the facts of this case. The enactments confer no specific duties upon building commissioners or inspectors with regard to individual citizens or property owners. General Laws c. 143, § 3A, as amended through St. 1979, c. 617, § 2, describes the responsibilities of a building inspector in this way: “[T]he local inspector shall enforce the state building code as to any building or structure within the city or town from which he is appointed.” The State Building Code speaks in terms of a public interest only. The section of the code relating to its purpose is set out below. 3 We conclude that there is nothing in either *810 the General Laws or in the State Building Code which shows a legislative intent to impose liability on a municipality to individual property owners for the negligent issuance of building permits or the nonenforcement of the State Building Code. 4
After a review of the pertinent legislation and the relevant cases of other jurisdictions, we conclude that we will not depart from the majority rule that in the absence of a special duty owed to the plaintiffs, different from that owed to the public at large, no cause of action for negligent inspection can be maintained. To hold otherwise would cause a municipality to become substantially an insurer of each and every construction project. The tremendous exposure to liability that could result from such a decision would likely dissuade municipalities from enacting regulations designed for the protection and welfare of the public. Accordingly, we affirm the judgment for the defendant.
Judgment affirmed.
Notes
The defendant argues that the judge’s finding that the plaintiffs did not experience flooding difficulties on the premises until March, 1978, was clearly erroneous. We do not decide this issue because the evidence at the trial is not reported. “This question is not open on the record. It must be presumed that there was sufficient evidence to warrant the finding.”
Lender
v.
London,
The purpose section of the State Building Code (1974), applicable at the time the plaintiff’s home was constructed provided: “100.3 CODE REMEDIAL: The Basic Code shall be construed to secure its expressed intent which is to insure public safety, health and welfare insofar as they are affected by building construction, through structural strength, adequate egress facilities, sanitary conditions, equipment, light and ventilation and fire safety; and in general, to secure safety to life and property and community from all hazards incident to the design, erection, repair, removal demolition or use and occupancy of buildings, structures and requirements for construction and construction standards of engineering and fire prevention practices and public safety; the adoption of modern technical methods, devices and improvements which may reduce the cost of construction without affecting the health, safety, and security of the occupants or users of buildings; the elimination of restrictive, obsolete, conflicting and unnecessary building regulations and requirements which may increase the cost of construction and maintenance over the life of the building, or retard unnecessarily the use of new materials, or which may provide unwarranted preferential treatment of types of classes of materials, *810 products or methods of construction without affecting the health, safety, and security of the occupants or users of buildings.” The present purpose section is abbreviated and provides as follows: “100.4 Code remedial: This code shall be construed to secure its expressed intent which is to insure public safety, health and welfare insofar as they are affected by building construction through structural strength, adequate egress facilities, light and ventilation and fire safety; and, in general, to secure safety to life and property.” 780 Code Mass. Regs. 100.4 (1980).
Contrast G. L. c. 269, § 8, which expressly imposes liability on a municipality for damage to private property caused by a riotous or tumultuous assembly. See Abraham v. Woburn, 383 Mass. 724 (1981).
