See section "Error Handling" under the special-variables-functions ref in the docs. Note that `require` is supported.