// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // Information about any problems encountered while processing an upload request. type DocumentServiceException struct { Message *string ErrorCodeOverride *string Status *string noSmithyDocumentSerde } func (e *DocumentServiceException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *DocumentServiceException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *DocumentServiceException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "DocumentServiceException" } return *e.ErrorCodeOverride } func (e *DocumentServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Information about any problems encountered while processing a search request. type SearchException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *SearchException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *SearchException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *SearchException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "SearchException" } return *e.ErrorCodeOverride } func (e *SearchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }