Wikia

WoWWiki

Watchlist Recent changes

API seterrorhandler

Main Menue



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

Pages on WoWWiki

94,214pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,641photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki