terraform-provider-gitea/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go
Malar Invention 00ebcd295e add vendor
2022-04-03 09:37:16 +05:30

24 lines
512 B
Go

package eventstream
import "fmt"
// LengthError provides the error for items being larger than a maximum length.
type LengthError struct {
Part string
Want int
Have int
Value interface{}
}
func (e LengthError) Error() string {
return fmt.Sprintf("%s length invalid, %d/%d, %v",
e.Part, e.Want, e.Have, e.Value)
}
// ChecksumError provides the error for message checksum invalidation errors.
type ChecksumError struct{}
func (e ChecksumError) Error() string {
return "message checksum mismatch"
}