Justice Sol Wachtler was Chief Judge of the New York Court of Appeals for eight years.  His prominent career and reputation were ruined, and the possibility that he might run for governor of New York to succeed Mario Cuomo was ended, by his arrest in 1992.  Following his arrest, he resigned from the Court of Appeals and served a thirteen month sentence in federal confinement.  In prison he was stabbed by another inmate and locked in solitary confinement.  A 1997 article reporting an interview with Sol Wachtler describes the basis for the arrest:

Wachtler's debacle began as an affair with prominent Republican fund-raiser Joy Silverman. After the relationship ended, he embarked on a series of threatening letters and phone calls to Silverman--including a sexually explicit note addressed to her 14-year-old daughter, complete with an enclosed condom--from various locales around the country. Later diagnosed with drug-induced bipolar disorder (manic depression), Wachtler says that his illness triggered these threats, which he signed with the pseudonym "David Purdy" as a ploy to send Silverman running back into his protective arms.

Psychology Today, July 1, 1997, p. 28.  Wachtler's prison memoirs, "After the Madness: A Judge's Own Prison Memoir" (Random House), describe his mental illness, drug addiction, and arrest but, perhaps more importantly, offers important insight about prison life and about punishment for drug offenses.  You may also be interested in his biography:   J. Caher, "King of the Mountain : The Rise, Fall, and Redemption of Chief Judge Sol Wachtler" (Prometheus 1998).