Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseValidationError added in v3.10.0

type ResponseValidationError struct {
	Message     string
	StatusCode  int
	Body        string
	RawResponse *http.Response
	Cause       error
}

func NewResponseValidationError added in v3.10.0

func NewResponseValidationError(message string, statusCode int, body string, httpRes *http.Response, cause error) *ResponseValidationError

func (*ResponseValidationError) Error added in v3.10.0

func (e *ResponseValidationError) Error() string

func (*ResponseValidationError) Unwrap added in v3.10.0

func (e *ResponseValidationError) Unwrap() error

type SDKError

type SDKError struct {
	Message     string
	StatusCode  int
	Body        string
	RawResponse *http.Response
}

func NewSDKError

func NewSDKError(message string, statusCode int, body string, httpRes *http.Response) *SDKError

func (*SDKError) Error

func (e *SDKError) Error() string

Jump to

Keyboard shortcuts

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