Struct: types.InvalidObjectState

import "../ibm-cos-sdk-go-v2/service/s3/types"

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Method Summary collapse

Method Details

func (e *InvalidObjectState) Error() string



117
118
119
// File 'service/s3/types/errors.go', line 117

func (e *InvalidObjectState) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) }

func (e *InvalidObjectState) ErrorCode() string



126
127
128
129
130
131
// File 'service/s3/types/errors.go', line 126

func (e *InvalidObjectState) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InvalidObjectState" } return *e.ErrorCodeOverride }

func (e *InvalidObjectState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// File 'service/s3/types/errors.go', line 132

func (e *InvalidObjectState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You may receive this error in multiple cases. Depending on the reason for the // error, you may receive one of the messages below: // // - Cannot specify both a write offset value and user-defined object metadata // for existing objects. // // - Checksum Type mismatch occurred, expected checksum Type: sha1, actual // checksum Type: crc32c. // // - Request body cannot be empty when 'write offset' is specified. type InvalidRequest struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde }

func (e *InvalidObjectState) ErrorMessage() string



120
121
122
123
124
125
// File 'service/s3/types/errors.go', line 120

func (e *InvalidObjectState) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message }