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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package sso
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInvalidRequestException for service response error code
    12  	// "InvalidRequestException".
    13  	//
    14  	// Indicates that a problem occurred with the input to the request. For example,
    15  	// a required parameter might be missing or out of range.
    16  	ErrCodeInvalidRequestException = "InvalidRequestException"
    17  
    18  	// ErrCodeResourceNotFoundException for service response error code
    19  	// "ResourceNotFoundException".
    20  	//
    21  	// The specified resource doesn't exist.
    22  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    23  
    24  	// ErrCodeTooManyRequestsException for service response error code
    25  	// "TooManyRequestsException".
    26  	//
    27  	// Indicates that the request is being made too frequently and is more than
    28  	// what the server can handle.
    29  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
    30  
    31  	// ErrCodeUnauthorizedException for service response error code
    32  	// "UnauthorizedException".
    33  	//
    34  	// Indicates that the request is not authorized. This can happen due to an invalid
    35  	// access token in the request.
    36  	ErrCodeUnauthorizedException = "UnauthorizedException"
    37  )
    38  
    39  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    40  	"InvalidRequestException":   newErrorInvalidRequestException,
    41  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    42  	"TooManyRequestsException":  newErrorTooManyRequestsException,
    43  	"UnauthorizedException":     newErrorUnauthorizedException,
    44  }