Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Sets the error handler to the given function.

seterrorhandler(errFunc)

Arguments

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

Example

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