errors

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	Body       []byte
	StatusCode int
}

func IsHTTPError

func IsHTTPError(err error) (*HTTPError, bool)

func NewHTTPError

func NewHTTPError(statusCode int, body []byte) *HTTPError

func (*HTTPError) Error

func (h *HTTPError) Error() string

Jump to

Keyboard shortcuts

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