errclass

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package errclass maps network errors to probe outcomes in a portable way.

The same failure looks different on every OS (ECONNRESET vs WSAECONNRESET, "connection reset by peer" vs "forcibly closed by the remote host"), so the classification relies on errno values first and on messages only as a fallback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classify

func Classify(err error) model.Outcome

Classify returns the outcome for err (model.OK for nil).

func Short

func Short(err error) string

Short returns a compact, privacy-safe description of err for reports. Local addresses (which may contain the user's IP) are removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL