Fandom

WoWWiki

API seterrorhandler

104,827pages on
this wiki
Add New Page
Talk0 Share
WoW API < seterrorhandler

Sets the function to be called when WoW encounters an error.

seterrorhandler(errFunction)

Arguments Edit

errFunction
Function - The function to call when an error occurs. The function is passed a single argument containing the error message.

Example Edit

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);

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.