Struct: http.ResponseError
Overview
ResponseError provides the HTTP centric error type wrapping the underlying error with the HTTP response value and the deserialized RequestID.
Implemented Interfaces
types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream
Structure Field Summary collapse
-
RequestID string
RequestID associated with response error.
Method Summary collapse
-
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 (e *ResponseError) ServiceRequestID() string { return e.RequestID }
ServiceRequestID returns the request id associated with Response Error.
Structure Field Details
RequestID string
RequestID associated with response error
Method Details
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)
30 31 32 |
// File 'aws/transport/http/response_error.go', line 30
|
func (e *ResponseError) ServiceRequestID() string { return e.RequestID }
ServiceRequestID returns the request id associated with Response Error
19 20 21 22 23 24 25 26 |
// File 'aws/transport/http/response_error.go', line 19
|