tfawserr

package
v2.0.0-beta.55 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCodeContains

func ErrCodeContains(err error, code string) bool

ErrCodeContains returns true if the error matches all these conditions:

  • err is of type smithy.APIError
  • APIError.ErrorCode() contains code

func ErrCodeEquals

func ErrCodeEquals(err error, codes ...string) bool

ErrCodeEquals returns true if the error matches all these conditions:

  • err is of type smithy.APIError
  • APIError.ErrorCode() equals one of the passed codes

func ErrHTTPStatusCodeEquals

func ErrHTTPStatusCodeEquals(err error, statusCodes ...int) bool

ErrHTTPStatusCodeEquals returns true if the error matches all these conditions:

  • err is of type smithyhttp.ResponseError
  • ResponseError.HTTPStatusCode() equals one of the passed status codes

func ErrMessageContains

func ErrMessageContains(err error, code string, message string) bool

ErrMessageContains returns true if the error matches all these conditions:

  • err is of type smithy.APIError
  • APIError.ErrorCode() equals code
  • APIError.ErrorMessage() contains message

Types

This section is empty.

Jump to

Keyboard shortcuts

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