apierror

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Code      errorapi.ErrorCode
	Category  errorapi.ErrorCategory
	Status    int
	Message   string
	RequestID string
	Method    string
	URL       string
	Headers   http.Header
	Body      string
}

func FromResponse

func FromResponse(resp *http.Response, body []byte) *APIError

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) ErrorCategory

func (e *APIError) ErrorCategory() errorapi.ErrorCategory

func (*APIError) ErrorCode

func (e *APIError) ErrorCode() errorapi.ErrorCode

func (*APIError) Is

func (e *APIError) Is(target error) bool

Jump to

Keyboard shortcuts

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