Documentation
¶
Index ¶
- Variables
- func NewConfigError(message string, cause error) error
- func NewConsignmentError(id, message string) error
- func NewDependencyError(message string, cycle []string) error
- func NewExitCodeError(code int, message string) error
- func NewExitCodeErrorWithCause(code int, message string, cause error) error
- func NewGitError(message string, cause error) error
- func NewNetworkError(message string, cause error) error
- func NewNotInitializedError(path string) error
- func NewUpgradeError(message string, cause error) error
- func NewValidationError(field, message string) error
- type ConfigError
- type ConsignmentError
- type DependencyError
- type ExitCodeError
- type GitError
- type NetworkError
- type NotInitializedError
- type UpgradeError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
var (
ErrNotInitialized = errors.New("shipyard not initialized (run 'shipyard init')")
)
Common errors
Functions ¶
func NewConfigError ¶
NewConfigError creates a new ConfigError
func NewConsignmentError ¶
NewConsignmentError creates a new ConsignmentError
func NewDependencyError ¶
NewDependencyError creates a new DependencyError
func NewExitCodeError ¶ added in v0.4.0
NewExitCodeError creates a new ExitCodeError
func NewExitCodeErrorWithCause ¶ added in v0.4.0
NewExitCodeErrorWithCause creates a new ExitCodeError with an underlying cause
func NewGitError ¶
NewGitError creates a new GitError
func NewNetworkError ¶
NewNetworkError creates a new NetworkError
func NewNotInitializedError ¶
NewNotInitializedError creates a new NotInitializedError
func NewUpgradeError ¶
NewUpgradeError creates a new UpgradeError
func NewValidationError ¶
NewValidationError creates a new ValidationError
Types ¶
type ConfigError ¶
ConfigError indicates a configuration-related error
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
func (*ConfigError) Unwrap ¶
func (e *ConfigError) Unwrap() error
type ConsignmentError ¶
ConsignmentError indicates an error related to a specific consignment
func (*ConsignmentError) Error ¶
func (e *ConsignmentError) Error() string
type DependencyError ¶
DependencyError indicates an error in the dependency graph
func (*DependencyError) Error ¶
func (e *DependencyError) Error() string
type ExitCodeError ¶ added in v0.4.0
ExitCodeError indicates a command should exit with a specific exit code
func (*ExitCodeError) Error ¶ added in v0.4.0
func (e *ExitCodeError) Error() string
func (*ExitCodeError) Unwrap ¶ added in v0.4.0
func (e *ExitCodeError) Unwrap() error
type NetworkError ¶
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 ¶
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 ¶
ValidationError indicates a validation failure for a specific field
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string