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
| name | type | description |
|---|---|---|
f | function | The function that will be called. |
msgh | function | Error handler function to be used should f cause an error. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | success | boolean | True if the function succeeded without errors. |
| 2 | | any |
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 ↗.