Can.1399 Besides the cases stated here or in other laws, an external violation of a divine or an ecclesiastical law can be punished by a just penalty only when the particular
seriousness of the violation demands punishment and there is an urgent need to preclude or repair scandal.