error Summary Writes a line to the standard error stream. Signatures Click on a signature to select it and view its documentation. public static void error(...external messages) public static void error(...System.Object messages) Usage public static void error(...external messages) public static void error(...System.Object messages) Parameters messages The error message(s). Parameters messages The error message(s). Description Writes a line to the standard error stream. If there is more than one error statement, they will each be written to distinct lines. If there is no console available, this method does nothing. Additionally, if no standard error stream is available, this method does nothing. Writes a line to the standard error stream. If there is more than one error statement, they will each be written to distinct lines. If there is no console available, this method does nothing. Additionally, if no standard error stream is available, this method does nothing. Examples Basic Usage 1234567import System; var a = "Error: First error message.";var b = "Error: Second error message.";Console.error(a);Console.error(b);Console.error(a, b); Basic Usage 123import System; Console.error("Error: My error message."); Printing Integer Values 123456import System; int x = 1;if (x > 0) { Console.error("Error: x cannot be greater than zero (0): ", x);} Share HTML | BBCode | Direct Link