Files
Mend Renovate 187b805105 Update module github.com/aws/smithy-go to v1.27.2
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-06-08 20:00:46 +00:00

24 lines
504 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 any
}
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"
}