errors

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package domainerr provides domain-level error types and sentinel errors.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAGitRepo        = errors.New("not a git repository")
	ErrNothingToCommit    = errors.New("nothing to commit")
	ErrNoRemoteConfigured = errors.New("no remote configured")
	ErrOllamaNotAvailable = errors.New("Ollama is not available")
	ErrModelNotReady      = errors.New("model is not ready")
	ErrSecretsDetected    = errors.New("secrets detected in files")
	ErrInvalidJSON        = errors.New("invalid JSON response")
	ErrOperationCancelled = errors.New("operation cancelled by user")

	// Security errors
	ErrSecurityHalt    = errors.New("SECURITY_HALT: operation cancelled for security reasons")
	ErrBlacklistedFile = errors.New("blacklisted file detected")
	ErrBinaryFile      = errors.New("binary file detected")
	ErrSelfBinary      = errors.New("git-courer own binary detected")
)

Sentinel errors for common domain scenarios

Functions

func IsDomainError

func IsDomainError(err error) bool

IsDomainError checks if an error is one of our domain sentinel errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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