Skip to content

Add box.error.is #4236

Closed
Closed
@TarantoolBot

Description

@TarantoolBot

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions