Documentation
¶
Overview ¶
Package safeerr classifies errors received across dependency boundaries without invoking caller-defined Is, As, or Unwrap methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign ¶
Assign stores the first error in root's bounded trusted graph that is assignable to the value addressed by target. It never invokes a custom As method. Invalid or nil targets simply do not match; callers using errors.As still receive that function's ordinary target validation before Assign is reached through an opaque boundary.
func Diagnostic ¶
Diagnostic returns err's diagnostic unless err is nil or typed nil. Nil values receive a stable opaque diagnostic without invoking any error method. A panic from a non-nil Error method is intentionally left to the caller's panic boundary.
func Is ¶
Is reports whether root contains target. It compares error values directly, never invokes custom Is or As methods, and unwraps only standard-library or explicitly trusted framework error types. Traversal is bounded.
Types ¶
This section is empty.