Skip to content

Add error field 'name' #4150

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

Open
TarantoolBot opened this issue Apr 11, 2024 · 0 comments · May be fixed by #5112
Open

Add error field 'name' #4150

TarantoolBot opened this issue Apr 11, 2024 · 0 comments · May be fixed by #5112
Assignees
Labels
3.1 errors reference [location] Tarantool manual, Reference part

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Apr 11, 2024

Related dev. issue(s): tarantool/tarantool#9875

Product: Tarantool
Since: 3.1
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/error_object/
SME: @ nshy

Details

The value is equal to name used on creation.

 tarantool> box.error.new(box.error.ILLEGAL_PARAMS, 'foo').name
---
- ILLEGAL_PARAMS
...

Requested by @ nshy in tarantool/tarantool@2bf9579.

@andreyaksenov andreyaksenov self-assigned this Apr 11, 2024
@andreyaksenov andreyaksenov added the reference [location] Tarantool manual, Reference part label Apr 25, 2024
@andreyaksenov andreyaksenov removed their assignment Apr 25, 2024
AArdeev added a commit that referenced this issue May 14, 2025
Since 3.1.0 there has been the ``name`` parameter,which returns the name of the error used at creation.
Fixes #4150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.1 errors reference [location] Tarantool manual, Reference part
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants