errorutil

package
v0.140.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errorutil classifies internal failures without depending on rendered messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(err error, match func(error) bool) bool

All reports whether every branch of an error tree contains a matching node. A match above a join does not hide an unrelated failure inside the join. match must inspect the supplied node, not search its descendants.

func UniqueViolation

func UniqueViolation(err error) bool

UniqueViolation matches a single repository or database-driver error node. Use All to classify wrapped or joined errors. Other constraint failures do not match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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