Documentation
¶
Overview ¶
Package diagnosticerror freezes bounded error evidence without retaining errors.
Index ¶
Constants ¶
const ( MaxNodes = 16 MaxDepth = 8 MaxFrames = 12 MaxMessageBytes = 1024 MaxTypeBytes = 256 MaxSourceBytes = 256 MaxFrameFieldBytes = 256 MaxErrorTextBytes = 6144 MaxStackTextBytes = 2048 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node uses a parent index to retain every branch of errors.Join without a recursive wire shape. The root's parent is -1.
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot exposes copies of its collections so observer queues never share mutable error objects or mutable backing arrays with their consumers.
func Capture ¶
Capture records the call site and snapshots standard single- and multi-cause errors. A nil error still records the source and stack, with no error nodes.