1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// An internal error has occurred. Retry your request. If the problem persists, 11// post a message with details on the AWS forums. 12type InternalServiceErrorException struct { 13 Message *string 14} 15 16func (e *InternalServiceErrorException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *InternalServiceErrorException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *InternalServiceErrorException) ErrorCode() string { return "InternalServiceErrorException" } 26func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 27 28// One or more parameters in your request was invalid. 29type InvalidParameterException struct { 30 Message *string 31} 32 33func (e *InvalidParameterException) Error() string { 34 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 35} 36func (e *InvalidParameterException) ErrorMessage() string { 37 if e.Message == nil { 38 return "" 39 } 40 return *e.Message 41} 42func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } 43func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 44 45// The calls to the GetEntitlements API are throttled. 46type ThrottlingException struct { 47 Message *string 48} 49 50func (e *ThrottlingException) Error() string { 51 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 52} 53func (e *ThrottlingException) ErrorMessage() string { 54 if e.Message == nil { 55 return "" 56 } 57 return *e.Message 58} 59func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } 60func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 61