Error and Warning Messages

Errors and warning messages are both output in the console (or the Command Window in GUI mode).

Errors output 'Error:' followed by the error message, and warning messages output 'Warning:' followed by the warning message.

Try/Catch typically uses error and/or warning messages.