(info) This AI is still in early stages of development.

out.ERROR

Outputs the message as an exception.

 

Notes

Converts the message in to a single line if it is an array.

Throws a new exception with the message as the Error.message property. If uncaught, the calling code stack will be terminated and an error message dumped in to the logs.

See Error Handling for more details.

If the self parameter is specified, the message will be prefixed with the filename and version defined in the Self Descriptor Object.

Example

try {
	out("hello", null, out.ERROR); // creates an error message "hello"
} catch(e) {
	e.message; // "hello"
}
Availability STABLE

Requires:

See also

Related constants:

  • out.ASSERTAsserts whether config is truthy, and if not throws a game assert and a Javascript error...
  • out.CHATOutputs the message to allies of the script player via in-game chat.
  • out.CONSOLEOutput message to console().
  • out.DEBUGOutput message to debug().
  • out.DEFAULTOutputs the message via out.HOST or out.CONSOLE depending on Warzone version.
  • out.ERROROutputs the message as an exception.
  • out.HOSTOutputs the message to the game host via in-game chat .
  • out.RETURNReturns the message to the calling script.