box.error.is() | Tarantool
Документация на русском языке
поддерживается сообществом

box.error.is()

box.error.is(object)

Since: 3.2.0

The box.error.is function allows verify whether the specified argument is an error cdata object.

Параметры:
  • object (object) – the object to be verified.

Return type: boolean

Example

tarantool> box.error.is(box.error.new(box.error.UNKNOWN))
---
- true
...
tarantool> box.error.is('foo')
---
- false
...
Нашли ответ на свой вопрос?
Обратная связь