Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API seterrorhandler

Last wiki revision 2022-07-21

Sets the error handler to the given function. seterrorhandler(errFunc)

  • errFunc: - The function to call when an error occurs. The function is passed a single argument containing the error message.

If you wanted to print all errors to your chat frame, you could do: seterrorhandler(print); Alternatively, the following would also perform the same task: seterrorhandler(function(msg) print(msg); end);

Source

https://warcraft.wiki.gg/wiki/API_seterrorhandler · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.