Java Error Print printError(String msg)

Here you can find the source of printError(String msg)

Description

Prints an error message to stdout

License

Open Source License

Parameter

Parameter Description
msg Message to be printed

Declaration

public static void printError(String msg) 

Method Source Code

//package com.java2s;

public class Main {
    /** Prints an error message to stdout
     * @param msg Message to be printed/* ww w .  j av a  2s. c  om*/
     */
    public static void printError(String msg) {
        System.out.println("Error! " + msg);
    }
}

Related

  1. printError(Class c, String m, Exception e)
  2. printError(Object obj, String message)
  3. printError(String error)
  4. printError(String message)
  5. printError(String message, Exception e, boolean pst)
  6. printError(String msg, Exception exception, boolean quit)
  7. printError(String s)
  8. printError(String s)
  9. printErrorAndExit(String message)