Top.Mail.Ru
box.error.clear() | Tarantool
 

box.error.clear()

box.error.clear()

box.error.clear()

Clear the record of errors, so functions like box.error() or box.error.last() will have no effect.

Example:

tarantool> box.schema.space.create('')
---
- error: Invalid identifier '' (expected printable symbols only or it is too long)
...
tarantool> box.error.last()
---
- Invalid identifier '' (expected printable symbols only or it is too long)
...
tarantool> box.error.clear()
---
...
tarantool> box.error.last()
---
- null
...