v0.7.0

Errors

Last updated


This page lists how each ToriiDB layer reports failure: Go errors from store, text responses from Exec, and sentinel errors from daemon.

Error Surface by Layer


SourceForm
store methodsGo error values, or (value, ok bool) for lookups
store.ExecText: OK, (nil), (integer) n, error: ..., usage: ..., unknown: CMD
daemon methodsErrNotFound, ErrBadRequest, ErrNoEmbedder (wrapped, test with errors.Is)

Daemon Error Kinds


Over the socket, failures travel as an error kind that the client maps back to a sentinel error; the full table is in Wire Protocol. ErrAlreadyRunning is returned only by Start() when another daemon already answers on the socket.

中文