errors

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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 errors provides predefined error variables used throughout the application to represent common failure conditions.

These errors allow for consistent comparisons using errors.Is and improve clarity across boundaries such as services, handlers, and utilities.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilModule               = errors.New("module is nil")
	ErrNoItems                 = errors.New("no items")
	ErrNoCommandSpecified      = errors.New("no command specified")
	ErrNilCookie               = errors.New("cookie is nil")
	ErrEmptySession            = errors.New("empty session")
	ErrEmptyLogin              = errors.New("empty login")
	ErrEmptyPassword           = errors.New("empty password")
	ErrPasswordTooShort        = errors.New("password is too short")
	ErrAuthentication          = errors.New("authentication failed")
	ErrEmptyModuleName         = errors.New("empty module name")
	ErrNameContainsSpace       = errors.New("name must not contain spaces")
	ErrEmptyAccountName        = errors.New("empty account name")
	ErrStageCallbackNotFound   = errors.New("stage callback not found")
	ErrChangelogValue          = errors.New("changelog from: value is required")
	ErrChangelogConditionValue = errors.New("changelog condition: value is required")
	ErrInvalidFilepath         = errors.New("invalid filepath")
	ErrSmallDepth              = errors.New("depth cannot be less than 0")
	ErrLargeDepth              = errors.New("depth cannot be greater than 5")
	ErrReplacement             = errors.New("replacement variable is empty")
	ErrEmptyVersion            = errors.New("empty version")
	ErrInvalidStages           = errors.New("stages is not valid")
	ErrInvalidRun              = errors.New("run is required")
	ErrNilRepository           = errors.New("repository is nil")
	ErrNoChanges               = errors.New("no changes detected. version directory is empty")
	ErrCallbackStage           = errors.New("callback stage is required")
	ErrCallbackPrePost         = errors.New("callback pre or post is required")
	ErrCallbackType            = errors.New("callback type is required")
	ErrCallbackMethod          = errors.New("callback method is required")
	ErrCallbackAction          = errors.New("callback action is required")
	ErrCallbackActionScheme    = errors.New(
		"callback action url scheme is invalid. allowed values are 'http' or 'https'",
	)
	ErrNilCmd                   = errors.New("cmd is nil")
	ErrNilClient                = errors.New("client is nil")
	ErrNilContext               = errors.New("nil context is prohibited")
	ErrInvalidRootDir           = errors.New("invalid root directory")
	ErrInvalidArgument          = errors.New("invalid argument")
	ErrDescriptionDoesNotExists = errors.New("description does not exist")
	ErrInvalidLabel             = errors.New("invalid label")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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