http

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 80

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResponseErrorMiddleware

func AddResponseErrorMiddleware(stack *middleware.Stack)

AddResponseErrorMiddleware adds response error wrapper middleware

Types

type ResponseError

type ResponseError struct {
	*smithyhttp.ResponseError

	// RequestID associated with response error
	RequestID string
}

ResponseError provides the HTTP centric error type wrapping the underlying error with the HTTP response value and the deserialized RequestID.

func (*ResponseError) As

func (e *ResponseError) As(target interface{}) bool

As populates target and returns true if the type of target is a error type that the ResponseError embeds, (e.g.AWS HTTP ResponseError)

func (*ResponseError) Error

func (e *ResponseError) Error() string

Error returns the formatted error

func (*ResponseError) ServiceRequestID

func (e *ResponseError) ServiceRequestID() string

ServiceRequestID returns the request id associated with Response Error

Jump to

Keyboard shortcuts

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