You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
box.error.new(error_code, args) - the way to create an error object and do not throw it, but just return as the simple object. It is useful when an error object must be saved to be got later, for example.
tarantool> e = box.error.new(box.error.CREATE_SPACE, "space", "error")tarantool> e
---
- 'Failed to create space ''space'': error'
...
tarantool> e:unpack()
---
- type: ClientErrorcode: 9message: 'Failed to create space ''space'': error'trace:
- file: '[string "e = box.error.new(box.error.CREATE_SPACE, "sp..."]'line: 1
...
box.error.new(error_code, args)
- the way to create an error object and do not throw it, but just return as the simple object. It is useful when an error object must be saved to be got later, for example.Requested by @Gerold103 in tarantool/tarantool#3031.
The text was updated successfully, but these errors were encountered: