OPINION
This case came before the Supreme Court on October 31, 2001, on appeal by the plaintiff, Norman Laurence (plaintiff or Laurence), from a final judgment of the Superior Court granting the defendant, Russell Sollitto’s (defendant or Sollitto) motion to dismiss plaintiffs complaint for failure to state a claim upon which relief can be granted. We deny and dismiss plaintiffs appeal and affirm the Superior Court judgment.
Facts and Travel
In October 1997, Laurence was indicted for conspiracy to murder and first-degree murder of Betty Jo Gardiner. Sollitto was his court-appointed attorney and served in that capacity from February 1998 until November 1998, when he withdrew his appearance after a hearing on a motion to suppress plaintiffs confession. After Laurence dismissed two more court-appointed attorneys, he elected to proceed pro se at trial and was convicted of both counts. He was sentenced to life in prison without parole for the murder and ten years in prison for conspiracy to murder. The appeal in the criminal case is pending before this Court. Although plaintiff made numerous allegations of wrongdoing by Sol-litto, the complaint asserted two causes of action; attorney malpractice and civil rights violations subject to 42 U.S.C. § 1983. Laurence sought compensatory and punitive damages. The trial justice granted Sollitto’s motion to dismiss the complaint concluding that Laurence failed to set forth a cognizable claim pursuant to Rule 12(b)(1) and (6) of the Superior Court Rules of Civil Procedure.
Standard of Review
“[T]he sole function of a motion to dismiss is to test the sufficiency of the complaint.”
Rhode Island Affiliate, ACLU, Inc. v. Bernasconi,
As a preliminary matter, we note that the record in this case reflects that exhibits and other materials, including a certified copy of plaintiffs criminal docket sheet and a copy of the transcript of the hearing on Laurence’s motion to suppress *457 his confession, were attached to defendant’s motion to dismiss. The purpose of a Rule 12(b)(6) motion is to test the legal sufficiency of the complaint, which must be determined without resort to extraneous materials. However, a trial justice need not reject affidavits or other evidence presented to the court to support such a motion. Rule 12(b) provides that when the materials are “not excluded by the court, the motion shall be treated as one for summary judgment and disposed of as provided in Rule 56, and all parties shall be given reasonable opportunity to present all material made pertinent to such motion by Rule 56.”
Here, it is unclear whether the hearing justice considered the extraneous material attached to defendant’s motion. The sufficiency of the complaint is, however, the threshold inquiry and as such, we have considered plaintiffs appeal using that standard. We conclude that the fatal flaws inherent in plaintiffs claims are apparent on the face of the complaint without resort to other documents; thus, we are satisfied that any error in considering extraneous materials, without first permitting plaintiff a reasonable opportunity to respond, is harmless error. We reiterate, however, that when extraneous material is included in a Rule 12(b)(6) motion, he or she is obliged to provide the opposing party a reasonable opportunity to respond, as the proceeding has been converted into one for summary judgment.
I
Defendant’s 1$ U.S.C. § 1983 Claims
Money damages for constitutional torts, such as those being sought by the plaintiff, are recoverable in civil actions pursuant to 42 U.S.C. § 1983.
1
It is well settled that 42 U.S.C. § 1988 claims are cognizable only for constitutional violations committed by persons acting under color of state law.
Brunelle v. Town of South Kingstown,
Furthermore, the hearing justice also found that because there was no averment that plaintiffs conviction had been vacated or reversed on appeal, the complaint failed to state a claim upon which relief can be granted. In the absence of a reversal or other vacation of plaintiffs conviction, Sol-litto is not subject to suit by plaintiff. In response to an increasing number of collateral attacks on criminal prosecutions and mindful of the importance of finality and consistency in judicial proceedings, the United States Supreme Court in
Heck v. Humphrey,
Here, as in Heck, plaintiff is seeking monetary damages and not injunctive relief or a release from custody; nevertheless, his allegations, if proven, attack the legality of his conviction and imprisonment. We thus hold, that before a litigant may institute a 42 U.S.C. § 1983 claim for *459 alleged constitutional deprivations in connection with a criminal prosecution, the conviction must first be overturned on appeal or in collateral proceedings. Because the appeal of plaintiffs conviction is now presently pending, he has not met this threshold requirement. Accordingly, we are satisfied that the trial justice did not err in granting defendant’s Rule 12(b)(6) motion to dismiss for failure to state a claim upon which relief can be granted.
II
Defendant’s Attorney Malpractice Claim
The second claim in the complaint against Sollitto alleged negligence or attorney malpractice. To be successful in an action for attorney malpractice, “a plaintiff must prove by a fair preponderance of the evidence not only a defendant’s duty of care, but also a breach thereof and the damages actually or proximately resulting therefrom to the plaintiff.”
Macera Brothers of Cranston, Inc. v. Gelfuso & Lachut, Inc.,
In
Glenn v. Aiken,
Furthermore, we are not satisfied that the complaint sets forth even a threshold showing of negligence on the part of this well-respected attorney. The defendant’s representation of the plaintiff was brief and was limited to a hearing on a pretrial motion to suppress. During the trial on the central question of Laurence’s guilt or innocence, the defendant represented himself. We are hard-pressed to conclude that the defendant’s conviction rested solely on the purported negligence of an attorney whose engagement was limited to a pretrial suppression hearing held months before the jury trial began. The Superior Court justice, therefore, properly granted the defendant’s motion to dismiss for failure to state a justiciable claim.
Conclusion
For the reasons included herein, the plaintiffs appeal is denied and dismissed and the judgment of the Superior Court is affirmed. The papers in this case are remanded to the Superior Court.
Notes
. 42 U.S.C. § 1983 provides in pertinent part:
“Every person who, under color of any statute, ordinance, regulation, custom, or usage, of any State or Territory or the District of Columbia subjects, or causes to be subjected, any citizen of the United States or other person within the jurisdiction thereof to the deprivation of any rights, privileges, or immunities secured by the Constitution and laws, shall be liable to the party injured in an action at law, suit in equity, or other proper proceeding for redress * *
. Article V, Rule 1, "Client-Lawyer Relationship” and Rule 2, "Counselor” of the Supreme Court Rules of Professional Conduct, provide in relevant part as follows:
“Rule 1.1 Competence. A Lawyer shall provide competent representation to a client. Competent representation requires the legal knowledge, skill, thoroughness and preparation reasonably necessary for the representation.”
"Rule 2.1 Advisor. In representing a client, a lawyer shall exercise independent professional judgment and render candid advice.”
.
See, e.g., Streeter v. Young,
