Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors provides error types and constants for the transport package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedTransport = errors.New("unsupported transport type")
	ErrTransportNotStarted  = errors.New("transport not started")
	ErrTransportClosed      = errors.New("transport closed")
	ErrInvalidMessage       = errors.New("invalid message")
	ErrRuntimeNotSet        = errors.New("container runtime not set")
	ErrContainerIDNotSet    = errors.New("container ID not set")
	ErrContainerNameNotSet  = errors.New("container name not set")
)

Common transport errors

Functions

This section is empty.

Types

type TransportError

type TransportError struct {
	// Err is the underlying error
	Err error
	// ContainerID is the ID of the container
	ContainerID string
	// Message is an optional error message
	Message string
}

TransportError represents an error related to transport operations

func NewTransportError

func NewTransportError(err error, containerID, message string) *TransportError

NewTransportError creates a new transport error

func (*TransportError) Error

func (e *TransportError) Error() string

Error returns the error message

func (*TransportError) Unwrap

func (e *TransportError) Unwrap() error

Unwrap returns the underlying error

Jump to

Keyboard shortcuts

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