public static void handleErrorViolations(Formatter formatter,long numErrors){
  ExitCode exitCode=formatter.getExitStatus(numErrors);
  if (exitCode != ExitCode.SUCCESS) {
    System.exit(exitCode.ordinal());
  }
}

public static void handleErrorViolations ( Formatter formatter , long numErrors ) { ExitCode exitCode = formatter . getExitStatus ( numErrors ) ; if ( exitCode != ExitCode . SUCCESS ) { System . exit ( exitCode . ordinal ( ) ) ; } }
non - zero exit status when any violation messages have severity . error , controlled by - - max - severity
