sdkerr

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 7 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionError

type ConnectionError struct {
	ErrorMessage string
}

func NewConnectionError

func NewConnectionError(msg string) *ConnectionError

func (*ConnectionError) Error

func (c *ConnectionError) Error() string

type CredentialsTypeError

type CredentialsTypeError struct {
	ErrorMessage string
}

func NewCredentialsTypeError

func NewCredentialsTypeError(msg string) *CredentialsTypeError

func (*CredentialsTypeError) Error

func (c *CredentialsTypeError) Error() string

type DefaultErrorHandler added in v0.1.62

type DefaultErrorHandler struct {
}

func (DefaultErrorHandler) HandleError added in v0.1.62

type ErrorHandler added in v0.1.62

type ErrorHandler interface {
	HandleError(req *request.DefaultHttpRequest, resp *response.DefaultHttpResponse) error
}

type RequestTimeoutError

type RequestTimeoutError struct {
	ErrorMessage string
}

func NewRequestTimeoutError

func NewRequestTimeoutError(msg string) *RequestTimeoutError

func (*RequestTimeoutError) Error

func (rt *RequestTimeoutError) Error() string

type ServiceResponseError

type ServiceResponseError struct {
	StatusCode                  int    `json:"status_code"`
	RequestId                   string `json:"request_id"`
	ErrorCode                   string `json:"error_code"`
	ErrorMessage                string `json:"error_message"`
	EncodedAuthorizationMessage string `json:"encoded_authorization_message"`
}

func NewServiceResponseError

func NewServiceResponseError(resp *http.Response) *ServiceResponseError

func (ServiceResponseError) Error

func (sr ServiceResponseError) Error() string

Jump to

Keyboard shortcuts

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