summaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go')
-rw-r--r--Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go b/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go
deleted file mode 100644
index 6b8989911..000000000
--- a/Godeps/_workspace/src/github.com/awslabs/aws-sdk-go/aws/error.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package aws
-
-import "time"
-
-// An APIError is an error returned by an AWS API.
-type APIError struct {
- StatusCode int // HTTP status code e.g. 200
- Code string
- Message string
- RequestID string
- Retryable bool
- RetryDelay time.Duration
- RetryCount uint
-}
-
-func (e APIError) Error() string {
- return e.Message
-}
-
-func Error(e error) *APIError {
- if err, ok := e.(APIError); ok {
- return &err
- } else {
- return nil
- }
-}