v0.13.8

xpcall

functionimplementedavailable in: camelot

Executes a function in protected mode with a custom error handler. success, res1, ... = xpcall(f, msgh [, arg1, ...])

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
ffunctionThe function that will be called.
msghfunctionError handler function to be used should f cause an error.

Returns

#nametypedescription
1successbooleanTrue if the function succeeded without errors.
2any

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.