It would be great to improve exceptions thrown by Tarantool:
- Use separate class, e.g. TarantoolException, or even hierarchy of classes.
- For "query errors" you could pass error code as $code parameter, so that it would be available through $exception->getCode().
- Save lua-traceback to some custom field of your exception object. Currently we should use xpcall with debug.traceback(), and return traceback manually.