rolesanywhere/types/errors.go (135 lines of code) (raw):

// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) type AccessDeniedException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *AccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *AccessDeniedException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *AccessDeniedException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "AccessDeniedException" } return *e.ErrorCodeOverride } func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ResourceNotFoundException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ResourceNotFoundException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ResourceNotFoundException" } return *e.ErrorCodeOverride } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceLinkedRoleLockClientException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ServiceLinkedRoleLockClientException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ServiceLinkedRoleLockClientException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ServiceLinkedRoleLockClientException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleLockClientException" } return *e.ErrorCodeOverride } func (e *ServiceLinkedRoleLockClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ServiceLinkedRoleLockServiceException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ServiceLinkedRoleLockServiceException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ServiceLinkedRoleLockServiceException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ServiceLinkedRoleLockServiceException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ServiceLinkedRoleLockServiceException" } return *e.ErrorCodeOverride } func (e *ServiceLinkedRoleLockServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } type TooManyTagsException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *TooManyTagsException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *TooManyTagsException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *TooManyTagsException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "TooManyTagsException" } return *e.ErrorCodeOverride } func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } type ValidationException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ValidationException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ValidationException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ValidationException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ValidationException" } return *e.ErrorCodeOverride } func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }