Skip to main content

Module error

Module error 

Source
Expand description

The error model.

A server-side failure arrives as TError (yt_proto/yt/core/misc/proto/error.proto): a code, a message, an attribute dictionary and — the part that matters — a list of inner errors. YTsaurus nests errors deeply, and the innermost one is usually the only one that says what actually went wrong: the outer layers say “lookup failed”, “tablet request failed”, and the innermost says “no such table”. Flattening that to a string loses the diagnosis, so YtError keeps the tree and YtError::find walks it.

Modules§

codes
Error codes worth naming. Values are from yt/go/yterrors/error_code.go, which is generated from the same C++ headers the proxy uses.

Structs§

YtError
An error reported by the server, with its nesting preserved.

Enums§

Error
Anything that can go wrong in this crate.

Type Aliases§

Result
The crate’s result type.