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// Raised when a malformed input has been provided to the API. 11type BadRequestException struct { 12 Message *string 13 14 noSmithyDocumentSerde 15} 16 17func (e *BadRequestException) Error() string { 18 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 19} 20func (e *BadRequestException) ErrorMessage() string { 21 if e.Message == nil { 22 return "" 23 } 24 return *e.Message 25} 26func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } 27func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 28 29// Raised when an unexpected error occurred during request processing. 30type InternalServerException struct { 31 Message *string 32 33 noSmithyDocumentSerde 34} 35 36func (e *InternalServerException) Error() string { 37 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 38} 39func (e *InternalServerException) ErrorMessage() string { 40 if e.Message == nil { 41 return "" 42 } 43 return *e.Message 44} 45func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } 46func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 47 48// Raised when the requested resource cannot be found. 49type ResourceNotFoundException struct { 50 Message *string 51 52 noSmithyDocumentSerde 53} 54 55func (e *ResourceNotFoundException) Error() string { 56 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 57} 58func (e *ResourceNotFoundException) ErrorMessage() string { 59 if e.Message == nil { 60 return "" 61 } 62 return *e.Message 63} 64func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 65func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 66