types

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorWithStatus added in v1.0.7

func NewErrorWithStatus(msg string, status int) error

func WrapError added in v1.0.7

func WrapError(msg string, err error) error

func WrapErrorWithStatus added in v1.0.7

func WrapErrorWithStatus(msg string, err error, status int) error

Types

type ErrorWithStatus added in v1.0.7

type ErrorWithStatus struct {
	Status  int
	Msg     string
	Wrapped error
}

func (*ErrorWithStatus) Error added in v1.0.7

func (h *ErrorWithStatus) Error() string

func (*ErrorWithStatus) Unwrap added in v1.0.7

func (h *ErrorWithStatus) Unwrap() error

Jump to

Keyboard shortcuts

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