Skip to content

Document msgpack.cfg.encode_error_as_ext #2417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Totktonada opened this issue Nov 9, 2021 · 0 comments · Fixed by #3605
Closed

Document msgpack.cfg.encode_error_as_ext #2417

Totktonada opened this issue Nov 9, 2021 · 0 comments · Fixed by #3605
Assignees
Labels
2.10 feature A new functionality msgpack reference [location] Tarantool manual, Reference part

Comments

@Totktonada
Copy link
Member

Totktonada commented Nov 9, 2021

Product: Tarantool
Since:
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/msgpack/#msgpack-cfg
SME: @ locker
Peer reviewer: @

Details

The new option determines how error objects (see box.error.new) are
encoded in the msgpack format:

  • If it's set, errors are encoded as the MP_ERROR msgpack extension.
    This is the default behavior.
  • If it's unset, the encoded format depends on other msgpack
    configuration options (encode_load_metatables, encode_use_tostring,
    encode_invalid_as_nil). With the otherwise default configuration,
    they are encoded as strings (see error.message).

Functions affected by the default configuration (msgpack.cfg):

  • msgpack and msgpackffi modules
  • Storing errors in tuples and spaces (box.tuple.new)
  • Returning errors from IPROTO CALL/EVAL

Requested by @locker in tarantool/tarantool@fa1652d

@xuniq xuniq added this to the Estimate [@xuniq] milestone Dec 24, 2021
@xuniq xuniq added feature A new functionality reference [location] Tarantool manual, Reference part labels Dec 24, 2021
@xuniq xuniq changed the title Document msgpack.cfg.encode_error_as_ext [2pt?] Document msgpack.cfg.encode_error_as_ext Dec 24, 2021
@xuniq xuniq removed this from the Estimate [@xuniq] milestone Dec 24, 2021
@xuniq xuniq added the server [area] Task relates to Tarantool's server (core) functionality label Dec 24, 2021
@xuniq xuniq changed the title [2pt?] Document msgpack.cfg.encode_error_as_ext [2pt] Document msgpack.cfg.encode_error_as_ext Dec 24, 2021
@veod32 veod32 added msgpack and removed server [area] Task relates to Tarantool's server (core) functionality labels Mar 6, 2023
@veod32 veod32 changed the title [2pt] Document msgpack.cfg.encode_error_as_ext Document msgpack.cfg.encode_error_as_ext Mar 6, 2023
@TarantoolBot TarantoolBot removed the 2sp label Jun 7, 2023
@andreyaksenov andreyaksenov self-assigned this Aug 3, 2023
@andreyaksenov andreyaksenov linked a pull request Aug 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 feature A new functionality msgpack reference [location] Tarantool manual, Reference part
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants