MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / error

Method error

zap/src/main/java/org/parosproxy/paros/CommandLine.java:702–711  ·  view source on GitHub ↗

A method for reporting error messages in CommandLineListener#execute(CommandLineArgument[]) implementations. It ensures that messages are written to the log file and/or written to stderr as appropriate. @param str the error message

(String str)

Source from the content-addressed store, hash-verified

700 * @param str the error message
701 */
702 public static void error(String str) {
703 switch (ZAP.getProcessType()) {
704 case cmdline:
705 System.err.println(str);
706 break;
707 default: // Ignore
708 }
709 // Always write to the log
710 LOGGER.error(str);
711 }
712
713 /**
714 * A method for reporting error messages in {@link

Callers 15

openCmdLineFileMethod · 0.95
executeMethod · 0.95
warnIfOutOfDateMethod · 0.95
installAddOnsMethod · 0.95
uninstallAddOnsMethod · 0.95
preExecuteMethod · 0.95
writeCertMethod · 0.95
executeMethod · 0.95
logAndPrintErrorMethod · 0.45
sessionSavedMethod · 0.45

Calls 2

getProcessTypeMethod · 0.95
printlnMethod · 0.45

Tested by

no test coverage detected