github.com/aavshr/aws-sdk-go@v1.41.3/service/support/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package support 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAttachmentIdNotFound for service response error code 12 // "AttachmentIdNotFound". 13 // 14 // An attachment with the specified ID could not be found. 15 ErrCodeAttachmentIdNotFound = "AttachmentIdNotFound" 16 17 // ErrCodeAttachmentLimitExceeded for service response error code 18 // "AttachmentLimitExceeded". 19 // 20 // The limit for the number of attachment sets created in a short period of 21 // time has been exceeded. 22 ErrCodeAttachmentLimitExceeded = "AttachmentLimitExceeded" 23 24 // ErrCodeAttachmentSetExpired for service response error code 25 // "AttachmentSetExpired". 26 // 27 // The expiration time of the attachment set has passed. The set expires 1 hour 28 // after it is created. 29 ErrCodeAttachmentSetExpired = "AttachmentSetExpired" 30 31 // ErrCodeAttachmentSetIdNotFound for service response error code 32 // "AttachmentSetIdNotFound". 33 // 34 // An attachment set with the specified ID could not be found. 35 ErrCodeAttachmentSetIdNotFound = "AttachmentSetIdNotFound" 36 37 // ErrCodeAttachmentSetSizeLimitExceeded for service response error code 38 // "AttachmentSetSizeLimitExceeded". 39 // 40 // A limit for the size of an attachment set has been exceeded. The limits are 41 // three attachments and 5 MB per attachment. 42 ErrCodeAttachmentSetSizeLimitExceeded = "AttachmentSetSizeLimitExceeded" 43 44 // ErrCodeCaseCreationLimitExceeded for service response error code 45 // "CaseCreationLimitExceeded". 46 // 47 // The case creation limit for the account has been exceeded. 48 ErrCodeCaseCreationLimitExceeded = "CaseCreationLimitExceeded" 49 50 // ErrCodeCaseIdNotFound for service response error code 51 // "CaseIdNotFound". 52 // 53 // The requested caseId couldn't be located. 54 ErrCodeCaseIdNotFound = "CaseIdNotFound" 55 56 // ErrCodeDescribeAttachmentLimitExceeded for service response error code 57 // "DescribeAttachmentLimitExceeded". 58 // 59 // The limit for the number of DescribeAttachment requests in a short period 60 // of time has been exceeded. 61 ErrCodeDescribeAttachmentLimitExceeded = "DescribeAttachmentLimitExceeded" 62 63 // ErrCodeInternalServerError for service response error code 64 // "InternalServerError". 65 // 66 // An internal server error occurred. 67 ErrCodeInternalServerError = "InternalServerError" 68 ) 69 70 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 71 "AttachmentIdNotFound": newErrorAttachmentIdNotFound, 72 "AttachmentLimitExceeded": newErrorAttachmentLimitExceeded, 73 "AttachmentSetExpired": newErrorAttachmentSetExpired, 74 "AttachmentSetIdNotFound": newErrorAttachmentSetIdNotFound, 75 "AttachmentSetSizeLimitExceeded": newErrorAttachmentSetSizeLimitExceeded, 76 "CaseCreationLimitExceeded": newErrorCaseCreationLimitExceeded, 77 "CaseIdNotFound": newErrorCaseIdNotFound, 78 "DescribeAttachmentLimitExceeded": newErrorDescribeAttachmentLimitExceeded, 79 "InternalServerError": newErrorInternalServerError, 80 }