gerrors

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package gerrors provides error handling for Kmdo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetailsOf

func DetailsOf(err error) map[string]any

DetailsOf gets the details of an error, if available.

func ExitOf

func ExitOf(err error) int

ExitOf gets the exit code of an error, if available.

func MessageOf

func MessageOf(err error) string

MessageOf gets the message of an error, if available.

func Wrap

func Wrap(err error, message string, pairs ...any) error

Wrap makes an error with details, mainly used for logging.

func WrapExit

func WrapExit(err error, message string, exit int, pairs ...any) error

WrapExit makes an error with details and an exit code, mainly used for logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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