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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package kinesisvideomedia
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeClientLimitExceededException for service response error code
    12  	// "ClientLimitExceededException".
    13  	//
    14  	// Kinesis Video Streams has throttled the request because you have exceeded
    15  	// the limit of allowed client calls. Try making the call later.
    16  	ErrCodeClientLimitExceededException = "ClientLimitExceededException"
    17  
    18  	// ErrCodeConnectionLimitExceededException for service response error code
    19  	// "ConnectionLimitExceededException".
    20  	//
    21  	// Kinesis Video Streams has throttled the request because you have exceeded
    22  	// the limit of allowed client connections.
    23  	ErrCodeConnectionLimitExceededException = "ConnectionLimitExceededException"
    24  
    25  	// ErrCodeInvalidArgumentException for service response error code
    26  	// "InvalidArgumentException".
    27  	//
    28  	// The value for this input parameter is invalid.
    29  	ErrCodeInvalidArgumentException = "InvalidArgumentException"
    30  
    31  	// ErrCodeInvalidEndpointException for service response error code
    32  	// "InvalidEndpointException".
    33  	//
    34  	// Status Code: 400, Caller used wrong endpoint to write data to a stream. On
    35  	// receiving such an exception, the user must call GetDataEndpoint with AccessMode
    36  	// set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia
    37  	// call.
    38  	ErrCodeInvalidEndpointException = "InvalidEndpointException"
    39  
    40  	// ErrCodeNotAuthorizedException for service response error code
    41  	// "NotAuthorizedException".
    42  	//
    43  	// Status Code: 403, The caller is not authorized to perform an operation on
    44  	// the given stream, or the token has expired.
    45  	ErrCodeNotAuthorizedException = "NotAuthorizedException"
    46  
    47  	// ErrCodeResourceNotFoundException for service response error code
    48  	// "ResourceNotFoundException".
    49  	//
    50  	// Status Code: 404, The stream with the given name does not exist.
    51  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    52  )
    53  
    54  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    55  	"ClientLimitExceededException":     newErrorClientLimitExceededException,
    56  	"ConnectionLimitExceededException": newErrorConnectionLimitExceededException,
    57  	"InvalidArgumentException":         newErrorInvalidArgumentException,
    58  	"InvalidEndpointException":         newErrorInvalidEndpointException,
    59  	"NotAuthorizedException":           newErrorNotAuthorizedException,
    60  	"ResourceNotFoundException":        newErrorResourceNotFoundException,
    61  }