diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
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 | } | ||