The attorney representing an ousted judge told the state Supreme Court on Tuesday it has the power to rectify what he characterized as “erratic” sanctions in the judicial disciplinary system.

The justices heard arguments in In re Nocella, which involves issues surrounding the removal of former Philadelphia Court of Common Pleas Judge Thomas Nocella for allegedly violating the state constitution and bringing the judiciary into disrepute. Those arguments also encompassed the extent to which the court can review sanctions imposed on judges by the Court of Judicial Discipline.