MORMONs do this ALL the time!
And that is an absolutely deplorable behavior and should be condemned loudly.
In some church’s, mind you, there are sometimes courts ran by the elders of the church. But for you to go to it, you have to have done something to offend the faith while being subject to its authority. (you are a member of the Church)