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
Lua API to create box.error() objects without throwing them #3031
Labels
Comments
kostja
added
good first issue
Good for newcomers
and removed
feature
A new functionality
labels
Feb 7, 2018
@TarantoolBot document tarantool> e = box.error.new(box.error.CREATE_SPACE, "space", "error")
tarantool> e
---
- 'Failed to create space ''space'': error'
...
tarantool> e:unpack()
---
- type: ClientError
code: 9
message: 'Failed to create space ''space'': error'
trace:
- file: '[string "e = box.error.new(box.error.CREATE_SPACE, "sp..."]'
line: 1
... |
@Gerold103: Accept. |
Gerold103
added a commit
that referenced
this issue
Apr 12, 2018
It is needed to return error via 'nil, error_object' notation, and to store an error object to return it later. Closes #3031
Gerold103
added a commit
that referenced
this issue
Apr 16, 2018
It is needed to return error via 'nil, error_object' notation, and to store an error object to return it later. Closes #3031
Gerold103
added a commit
that referenced
this issue
May 8, 2018
It is needed to return error via 'nil, error_object' notation, and to store an error object to return it later. Closes #3031
Gerold103
added a commit
that referenced
this issue
May 8, 2018
It is needed to return error via 'nil, error_object' notation, and to store an error object to return it later. Closes #3031
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current it is not possible to create box.error() (
struct error
) objects without throwing them. Let's bind box_error_new() C API to Lua.The text was updated successfully, but these errors were encountered: