Skip to content

Add box.error.is #4236

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
TarantoolBot opened this issue May 24, 2024 · 0 comments · Fixed by #5112
Closed

Add box.error.is #4236

TarantoolBot opened this issue May 24, 2024 · 0 comments · Fixed by #5112
Assignees

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented May 24, 2024

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

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

Details

The function checks whether argument passed is box.error.

tarantool> box.error.is(box.error.new(box.error.UNKNOWN))
---
- true
...

tarantool> box.error.is('foo')
---
- false
...

Requested by @ nshy in tarantool/tarantool@8ed6104.

@andreyaksenov andreyaksenov removed their assignment Jun 19, 2024
AArdeev added a commit that referenced this issue May 14, 2025
Function allows check whether the argument is an error. Added as a new page
Fixes #4236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants