| Tarantool
Check out the new release policy, errtext[, errtext ...])

Create an error object, but do not throw. This is useful when error information should be saved for later retrieval. The parameters are the same as for box.error(), see the description there.

  • code (number) – number of a pre-defined error
  • errtext(s) (string) – part of the message which will accompany the error


tarantool> e ={code = 555, reason = 'Arbitrary message'}
tarantool> e:unpack()
- type: ClientError
  code: 555
  message: Arbitrary message
  - file: '[string "e ={code = 555, reason = ''Arbit..."]'
    line: 1