github.com/aavshr/aws-sdk-go@v1.41.3/service/route53recoveryreadiness/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package route53recoveryreadiness
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	ErrCodeAccessDeniedException = "AccessDeniedException"
    14  
    15  	// ErrCodeConflictException for service response error code
    16  	// "ConflictException".
    17  	ErrCodeConflictException = "ConflictException"
    18  
    19  	// ErrCodeInternalServerException for service response error code
    20  	// "InternalServerException".
    21  	ErrCodeInternalServerException = "InternalServerException"
    22  
    23  	// ErrCodeResourceNotFoundException for service response error code
    24  	// "ResourceNotFoundException".
    25  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    26  
    27  	// ErrCodeThrottlingException for service response error code
    28  	// "ThrottlingException".
    29  	ErrCodeThrottlingException = "ThrottlingException"
    30  
    31  	// ErrCodeValidationException for service response error code
    32  	// "ValidationException".
    33  	ErrCodeValidationException = "ValidationException"
    34  )
    35  
    36  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    37  	"AccessDeniedException":     newErrorAccessDeniedException,
    38  	"ConflictException":         newErrorConflictException,
    39  	"InternalServerException":   newErrorInternalServerException,
    40  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    41  	"ThrottlingException":       newErrorThrottlingException,
    42  	"ValidationException":       newErrorValidationException,
    43  }