If the malpractice alleged occurred in litigation, the legal malpractice  case may result in a "trial-within-a-trial" which delves into the facts of the case for which the client originally retained the attorney.
If malpractice claims arise in legal proceedings, a "trial-within-a-trial" may be held to examine the facts of the case for which the client initially engaged the attorney.