error: update current documentation #1676
Labels
add details
[nature] More details needed, some info missing. Documentation is incomplete.
errors
example
Problem with a code example.
reference
[location] Tarantool manual, Reference part
I will try to describe what confuses me and what I suggest to improve.
It's look like the old (before 2.4) and new (after 2.4) descriptions have been squashed with out of a synchronization.
Proposed changes:
error
before 2.4:box.error(code, errtext[, errtext ...])
has two description. I propose squash to one.code
in case of usingbox.error ()
- it would be nice to add information thatcode
will determine the format of the error message.error
after 2.4:box.error ()
andbox.error {}
) is need to add a way to createCustomError
with a link to the detailed description.type
is added to the arguments forbox.error ()
andbox.error {}
, add a detailed description: "What does this mean" (or a link to a detailed description).:unpack()
example for every type of generated error:netbox
(before and after 2.4)IPROTO_ERROR
is used)old (all errors will be converted to
ClientError
):new (an error will be transmitted as is):
return box.error.new()
(IPROTO OK
is used)old (all errors will be converted to string(error message)):
new (the transparent marshaling can be enabled):
The text was updated successfully, but these errors were encountered: