warn

Synopsis

warn("text")

Prints "text" to the registered runtime warning watcher. Provides an application neutral way to print messages to the Sleep console.

Parameters

"text" - the text to write

Examples

try { $handle = openf("doesNotExist"); throw checkError($error); println("file opened!"); } catch $exception { warn("error: $exception"); }

Warning: error: java.io.FileNotFoundException: /Users/raffi/manual/manual/doesNotExist (No such file or directory) at choice1.sl:10

See Also