networkerror

package
v0.0.0-...-4b04f26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestError

type BadRequestError struct {
	Message string `json:"error"`
}

func (BadRequestError) Error

func (e BadRequestError) Error() string

type ConflictError

type ConflictError struct {
	Message string `json:"error"`
}

func (ConflictError) Error

func (e ConflictError) Error() string

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"error"`
}

func (ErrorResponse) Error

func (e ErrorResponse) Error() string

type ForbiddenError

type ForbiddenError struct {
	Message string `json:"error"`
}

func (ForbiddenError) Error

func (e ForbiddenError) Error() string

type InvalidAuthTokenError

type InvalidAuthTokenError struct {
	Message string
}

InvalidAuthTokenError is returned when the client has an invalid authorization header.

func (InvalidAuthTokenError) Error

func (e InvalidAuthTokenError) Error() string

type NotAcceptableError

type NotAcceptableError struct {
	Message string `json:"error"`
}

func (NotAcceptableError) Error

func (e NotAcceptableError) Error() string

type NotFoundError

type NotFoundError struct {
	Message string
}

NotFoundError wraps a generic 404 error.

func (NotFoundError) Error

func (e NotFoundError) Error() string

type RawHTTPStatusError

type RawHTTPStatusError struct {
	StatusCode  int
	RawResponse []byte
	RequestIDs  []string
}

RawHTTPStatusError represents any response with a 4xx or 5xx status code.

func (RawHTTPStatusError) Error

func (r RawHTTPStatusError) Error() string

type RequestError

type RequestError struct {
	Err error
}

RequestError represents a generic error encountered while performing the HTTP request. This generic error occurs before a HTTP response is obtained.

func (RequestError) Error

func (e RequestError) Error() string

type SSLValidationHostnameError

type SSLValidationHostnameError struct {
	Message string
}

SSLValidationHostnameError replaces x509.HostnameError when the server has SSL certificate that does not match the hostname.

func (SSLValidationHostnameError) Error

type UnauthorizedError

type UnauthorizedError struct {
	Message string `json:"error"`
}

func (UnauthorizedError) Error

func (e UnauthorizedError) Error() string

type UnexpectedResponseError

type UnexpectedResponseError struct {
	ErrorResponse

	RequestIDs   []string
	ResponseCode int
}

UnexpectedResponseError is returned when the client gets an error that has not been accounted for.

func (UnexpectedResponseError) Error

func (e UnexpectedResponseError) Error() string

type UnverifiedServerError

type UnverifiedServerError struct {
	URL string
}

UnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate

func (UnverifiedServerError) Error

func (UnverifiedServerError) Error() string

Jump to

Keyboard shortcuts

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