errors

package
v0.3.1-snapshot.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotInitialized = errors.New("shipyard not initialized (run 'shipyard init')")
)

Common errors

Functions

func NewConfigError

func NewConfigError(message string, cause error) error

NewConfigError creates a new ConfigError

func NewConsignmentError

func NewConsignmentError(id, message string) error

NewConsignmentError creates a new ConsignmentError

func NewDependencyError

func NewDependencyError(message string, cycle []string) error

NewDependencyError creates a new DependencyError

func NewGitError

func NewGitError(message string, cause error) error

NewGitError creates a new GitError

func NewNetworkError

func NewNetworkError(message string, cause error) error

NewNetworkError creates a new NetworkError

func NewNotInitializedError

func NewNotInitializedError(path string) error

NewNotInitializedError creates a new NotInitializedError

func NewUpgradeError

func NewUpgradeError(message string, cause error) error

NewUpgradeError creates a new UpgradeError

func NewValidationError

func NewValidationError(field, message string) error

NewValidationError creates a new ValidationError

Types

type ConfigError

type ConfigError struct {
	Message string
	Cause   error
}

ConfigError indicates a configuration-related error

func (*ConfigError) Error

func (e *ConfigError) Error() string

func (*ConfigError) Unwrap

func (e *ConfigError) Unwrap() error

type ConsignmentError

type ConsignmentError struct {
	ID      string
	Message string
}

ConsignmentError indicates an error related to a specific consignment

func (*ConsignmentError) Error

func (e *ConsignmentError) Error() string

type DependencyError

type DependencyError struct {
	Message string
	Cycle   []string
}

DependencyError indicates an error in the dependency graph

func (*DependencyError) Error

func (e *DependencyError) Error() string

type GitError

type GitError struct {
	Message string
	Cause   error
}

GitError indicates a git operation error

func (*GitError) Error

func (e *GitError) Error() string

func (*GitError) Unwrap

func (e *GitError) Unwrap() error

type NetworkError

type NetworkError struct {
	Message string
	Cause   error
}

NetworkError indicates a network-related error

func (*NetworkError) Error

func (e *NetworkError) Error() string

func (*NetworkError) Unwrap

func (e *NetworkError) Unwrap() error

type NotInitializedError

type NotInitializedError struct {
	Path string
}

NotInitializedError indicates that shipyard has not been initialized in the repository

func (*NotInitializedError) Error

func (e *NotInitializedError) Error() string

type UpgradeError

type UpgradeError struct {
	Message string
	Cause   error
}

UpgradeError indicates an error during the upgrade process

func (*UpgradeError) Error

func (e *UpgradeError) Error() string

func (*UpgradeError) Unwrap

func (e *UpgradeError) Unwrap() error

type ValidationError

type ValidationError struct {
	Field   string
	Message string
}

ValidationError indicates a validation failure for a specific field

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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