errors

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAwsError added in v1.0.4

func IsAwsError(err error, code string) bool

func IsCFNStackNotFound added in v1.0.4

func IsCFNStackNotFound(err error) bool

IsCFNStackNotFound returns true if the error is a CloudFormation stack not found error.

func IsIAMRoleNotFound added in v1.0.10

func IsIAMRoleNotFound(err error) bool

IsIAMRoleNotFound returns true if the error is an IAM role not found error.

func IsS3BucketNotFound added in v1.0.4

func IsS3BucketNotFound(err error) bool

IsS3BucketNotFound returns true if the error is an S3 bucket not found error. The sdk does not always return the specific NoSuchBucket error, so we check for the generic NoSuchBucket error code.

func IsType

func IsType[T error](err error, targetType T) bool

IsType returns true if any errors in the chain are of the specified type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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