For example

Lying to a court after you have sworn to tell the truth is such a serious offence that is has its own name: perjury.