errors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

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