params

package
v0.8.18-rc-2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MPL-2.0 Imports: 2 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) Cause

func (e *Error) Cause() error

Cause returns the underlying error.

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.

Jump to

Keyboard shortcuts

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