A federal appeals court weighed whether a law firm can keep a client’s malpractice claim out of court if the two sides have a contract calling for arbitration of all disputes.

On Monday, the U.S. Court of Appeals for the First Circuit heard Douglas Bezio’s appeal of a Maine federal judge’s dismissal of his case against Portland, Maine-based Bernstein, Shur, Sawyer & Nelson and three of its lawyers.