devxerr

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// State/Existence Errors
	CodeVMDormant  = 15
	CodeVMNotFound = 16

	// Execution/Environment Errors
	CodeHostPortInUse = 22

	// Auth/Authentication Errors
	CodeNotLoggedIn = 41
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DevxError

type DevxError struct {
	ExitCode int
	Message  string
	Err      error
}

DevxError wraps a standard error with a stable machine-readable exit code.

func New

func New(code int, msg string, err error) *DevxError

New returns a new predictable exit code error.

func (*DevxError) Error

func (e *DevxError) Error() string

func (*DevxError) Unwrap

func (e *DevxError) Unwrap() error

Unwrap support for errors.Is/As

Jump to

Keyboard shortcuts

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