sdkerr

package
v0.0.26-beta Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 6 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 Error

type Error interface {
	error
	ErrorMessage() string
}

type RequestError

type RequestError interface {
	Error
	StatusCode() int
	RequestID() string
	ErrorCode() string
}

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"`
}

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