Translations:Extension:Scribunto/Lua reference manual/199/en

Errors may be "thrown" using the error and assert functions. To "catch" errors, use pcall or xpcall. Note that certain internal Scribunto errors cannot be caught in Lua code.