Print the message and then exit with the given exit code

@param message The message to print
@param exitCode The exit code
6416
public static void croak(final String message, final int exitCode) {
    System.err.println(message);
    System.exit(exitCode);
  }
695001
public void error(final int errorCode, final String message) {
		try {
			this.response.sendError(errorCode, message);
		} catch (final IOException e) {
			e.printStackTrace();
		}
	}
920538
public static void printHelp(String message) {
    System.err.println(message);
    HelpFormatter formatter = new HelpFormatter();
    formatter.printHelp(USAGE, OPTIONS, true);
  }
675324
public void trace(String message, Object... args) {
    if (isDebugEnabled()) {
      trace(String.format(message, args), getThrowable(args));
    }
  }
454493
public static void printVerboseMessage(final String message, final Logger logger) {
        try {
            if (JPService.getProperty(JPVerbose.class).getValue()) {
                logger.info(message);
            } else {
                logger.debug(message);
            }
        } catch (final JPServiceException ex) {
            logger.info(message);
            ExceptionPrinter.printHistory("Could not access verbose java property!", ex, logger);
        }
    }
1136811
@Override
    public void exiting(String sourceClass, String sourceMethod, Object result) {
        if (isLoggable(Level.FINER)) {
            Object params[] = { result };
            logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", params);
        }
    }
1203417
def exit_with_error(message):
    
    click.secho(message, err=True, bg='red', fg='white')
    sys.exit(0)
1294269
public static void printToFile(String filename, String message) {
    printToFile(new File(filename), message, false);
  }
552857
public static void printHelp(String message) {
    System.err.println(message);
    HelpFormatter help = new HelpFormatter();
    help.printHelp(USAGE, OPTIONS);
  }
110093
public void print(PrintStream ps, String message){
        if(SUPPORTED)
            ps.print(start);
        ps.print(message);
        if(SUPPORTED)
            ps.print(END);
    }
212291
public static void Debug(String message) {
        if (BranchUtil.isDebugEnabled() || enableLogging_) {
            if (!TextUtils.isEmpty(message)) {
                Log.i(TAG, message);
            }
        }
    }
1201935
void logDebug(final String message) {
      if(logger != null) {
         try {
            StringBuilder buf = new StringBuilder(name);
            buf.append(": ");
            buf.append(message);
            logger.debug(buf.toString());
         } catch(Throwable t) {
            //Ignore - logging should not kill anything
         }
      }
   }
1182103
def print_and_exit(results):
    """"""
    for success, value in results:
        if success:
            print value.encode(locale.getpreferredencoding())
        else:
            value.printTraceback()
662796
public static String printToUnicodeString(final MessageOrBuilder message) {
    try {
      final StringBuilder text = new StringBuilder();
      UNICODE_PRINTER.print(message, new TextGenerator(text));
      return text.toString();
    } catch (IOException e) {
      throw new IllegalStateException(e);
    }
  }
264836
public static void fail(String message, Object... args) {
		throw new IllegalStateException(message == null ? "" : String.format(message, args));
	}
822290
private void printHelpAndExit(int exitCode) {
    HelpFormatter hf = new HelpFormatter();

    hf.printHelp("gobblin-admin.sh <command> [options]", this.options);
    System.out.println("Valid commands:");
    for (String command : getCommandNames()) {
      System.out.println(command);
    }

    System.exit(exitCode);
  }
728124
public static function displayAsReadLine(string $message, string $exit = "yes")
    {
        $colors = self::getManagerColorInstance();
        echo "\n".$colors->getColoredStringReadLine($message, "black", "transparent");
        if ($exit == "yes") {
            exit();
        }
    }