diff options
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go new file mode 100644 index 0000000..5ea5a98 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go | |||
@@ -0,0 +1,24 @@ | |||
1 | package eventstreamapi | ||
2 | |||
3 | import "fmt" | ||
4 | |||
5 | type messageError struct { | ||
6 | code string | ||
7 | msg string | ||
8 | } | ||
9 | |||
10 | func (e messageError) Code() string { | ||
11 | return e.code | ||
12 | } | ||
13 | |||
14 | func (e messageError) Message() string { | ||
15 | return e.msg | ||
16 | } | ||
17 | |||
18 | func (e messageError) Error() string { | ||
19 | return fmt.Sprintf("%s: %s", e.code, e.msg) | ||
20 | } | ||
21 | |||
22 | func (e messageError) OrigErr() error { | ||
23 | return nil | ||
24 | } | ||