Source File
response_error.go
Belonging Package
github.com/aws/aws-sdk-go-v2/aws/transport/http
package http
import (
smithyhttp
)
// ResponseError provides the HTTP centric error type wrapping the underlying error
// with the HTTP response value and the deserialized RequestID.
type ResponseError struct {
*smithyhttp.ResponseError
// RequestID associated with response error
RequestID string
}
// ServiceRequestID returns the request id associated with Response Error
func ( *ResponseError) () string { return .RequestID }
// Error returns the formatted error
func ( *ResponseError) () string {
return fmt.Sprintf(
"https response error StatusCode: %d, RequestID: %s, %v",
.Response.StatusCode, .RequestID, .Err)
}
// 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) ( interface{}) bool {
return errors.As(.ResponseError, )
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)