Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode int
ErrorCode represents specific error types in lanup
const ( // ErrNoNetwork indicates no active network interface was found ErrNoNetwork ErrorCode = iota + 1 // ErrInvalidConfig indicates configuration file is malformed or invalid ErrInvalidConfig // ErrFileNotFound indicates a required file was not found ErrFileNotFound // ErrPermissionDenied indicates insufficient permissions for an operation ErrPermissionDenied // ErrInvalidURL indicates the provided URL is invalid or malformed ErrInvalidURL ErrDockerUnavailable )
type LanupError ¶
LanupError represents a structured error with code, message, and cause
func NewError ¶
func NewError(code ErrorCode, msg string, cause error) *LanupError
NewError creates a new LanupError with the given code, message, and optional cause
func (*LanupError) ExitCode ¶
func (e *LanupError) ExitCode() int
ExitCode returns the appropriate exit code for the error
Click to show internal directories.
Click to hide internal directories.