params

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package params implements parameter parsing errors and wrapping mechanisms for target arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...any) error

Errorf returns an Error configured with format message.

func Wrapf

func Wrapf(err error, format string, args ...any) error

Wrapf returns an Error wrapping the provided error with format message.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents an error with an associated parent error and cause.

func (*Error) Error

func (e *Error) Error() string

Error implements [error] interface.

func (*Error) Is

func (e *Error) Is(err error) bool

Is checks if the err is an Error.

func (*Error) ParentError

func (e *Error) ParentError() string

ParentError returns the parent error message.

func (*Error) Unwrap added in v0.8.18

func (e *Error) 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