Skip to content

Tarantool exceptions enhancement: custom classes, lua traceback #88

@zaglex

Description

@zaglex

It would be great to improve exceptions thrown by Tarantool:

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

Metadata

Metadata

Assignees

Labels

featureA new functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions