errors

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides structured error types whose call sites need to match on type via errors.As (e.g. CLI exit-code mapping, retry policies).

Lower-level wrap-and-propagate paths (config load, HCL parse) use plain fmt.Errorf("...: %w", err) — wrapping that nobody dispatches on doesn't earn its own type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoModulesError

type NoModulesError struct {
	Dir string
}

NoModulesError indicates that module discovery succeeded but found no modules. Distinct from ScanError so the CLI can emit a friendly hint instead of a generic failure message.

func (*NoModulesError) Error

func (e *NoModulesError) Error() string

type ScanError

type ScanError struct {
	Dir string
	Err error
}

ScanError indicates a module discovery failure; matched by tests and CLI callers via errors.As to distinguish "could not scan workdir" from other workflow errors.

func (*ScanError) Error

func (e *ScanError) Error() string

func (*ScanError) Unwrap

func (e *ScanError) Unwrap() error

Jump to

Keyboard shortcuts

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