1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
// 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 }
|