codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.52k stars 337 forks source link

improve error handling #1358

Open emkaminsk opened 1 year ago

emkaminsk commented 1 year ago

we need to improve error handling. At embedded package errors may already be associated to an error code. Errors from internal components may be wrapped by higher level ones but still be comparable with errors.Is api.

SDKs should be able to interprete or at least print the error code together with the error message.

Currently embedded package generates simple golang errors, there is an attempt to associate error codes but in the grpc server layer, lacking above described capabilities.

tomekkolo commented 1 year ago

Related: https://github.com/codenotary/immudb-issues/issues/30, https://github.com/codenotary/immudb/issues/1358