github.com/aavshr/aws-sdk-go@v1.41.3/service/qldbsession/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package qldbsession 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // Returned if the request is malformed or contains an error such as an invalid 15 // parameter value or a missing required parameter. 16 ErrCodeBadRequestException = "BadRequestException" 17 18 // ErrCodeCapacityExceededException for service response error code 19 // "CapacityExceededException". 20 // 21 // Returned when the request exceeds the processing capacity of the ledger. 22 ErrCodeCapacityExceededException = "CapacityExceededException" 23 24 // ErrCodeInvalidSessionException for service response error code 25 // "InvalidSessionException". 26 // 27 // Returned if the session doesn't exist anymore because it timed out or expired. 28 ErrCodeInvalidSessionException = "InvalidSessionException" 29 30 // ErrCodeLimitExceededException for service response error code 31 // "LimitExceededException". 32 // 33 // Returned if a resource limit such as number of active sessions is exceeded. 34 ErrCodeLimitExceededException = "LimitExceededException" 35 36 // ErrCodeOccConflictException for service response error code 37 // "OccConflictException". 38 // 39 // Returned when a transaction cannot be written to the journal due to a failure 40 // in the verification phase of optimistic concurrency control (OCC). 41 ErrCodeOccConflictException = "OccConflictException" 42 43 // ErrCodeRateExceededException for service response error code 44 // "RateExceededException". 45 // 46 // Returned when the rate of requests exceeds the allowed throughput. 47 ErrCodeRateExceededException = "RateExceededException" 48 ) 49 50 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 51 "BadRequestException": newErrorBadRequestException, 52 "CapacityExceededException": newErrorCapacityExceededException, 53 "InvalidSessionException": newErrorInvalidSessionException, 54 "LimitExceededException": newErrorLimitExceededException, 55 "OccConflictException": newErrorOccConflictException, 56 "RateExceededException": newErrorRateExceededException, 57 }