diff options
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go new file mode 100644 index 0000000..5481ef3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go | |||
@@ -0,0 +1,23 @@ | |||
1 | package eventstream | ||
2 | |||
3 | import "fmt" | ||
4 | |||
5 | // LengthError provides the error for items being larger than a maximum length. | ||
6 | type LengthError struct { | ||
7 | Part string | ||
8 | Want int | ||
9 | Have int | ||
10 | Value interface{} | ||
11 | } | ||
12 | |||
13 | func (e LengthError) Error() string { | ||
14 | return fmt.Sprintf("%s length invalid, %d/%d, %v", | ||
15 | e.Part, e.Want, e.Have, e.Value) | ||
16 | } | ||
17 | |||
18 | // ChecksumError provides the error for message checksum invalidation errors. | ||
19 | type ChecksumError struct{} | ||
20 | |||
21 | func (e ChecksumError) Error() string { | ||
22 | return "message checksum mismatch" | ||
23 | } | ||