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.

Parameters:
  • 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 ... 
Found what you were looking for?
Feedback