Legal violations fall under three classes, meaning they’re either crimes, misdemeanors, or infractions. Classification is done by legislators, depending on the magnitude of your violation. A minor violation in the eyes of ordinary folk could be a serious legal situation in law; only a legal expert can help you understand legal stuff. For more details, read this PDF.