forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws: Cleanup exported concrete error types, only export error codes (a…
- Loading branch information
Showing
9 changed files
with
44 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
package aws | ||
|
||
import "github.com/aws/aws-sdk-go-v2/aws/awserr" | ||
// MissingRegionError is an error that is returned if region configuration is not found. | ||
type MissingRegionError struct{} | ||
|
||
var ( | ||
// ErrMissingRegion is an error that is returned if region configuration is | ||
// not found. | ||
// | ||
// @readonly | ||
ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) | ||
func (*MissingRegionError) Error() string { | ||
return "could not find region configuration" | ||
} | ||
|
||
// ErrMissingEndpoint is an error that is returned if an endpoint cannot be | ||
// resolved for a service. | ||
// | ||
// @readonly | ||
ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) | ||
) | ||
// MissingEndpointError is an error that is returned if an endpoint cannot be resolved for a service. | ||
type MissingEndpointError struct{} | ||
|
||
func (*MissingEndpointError) Error() string { | ||
return "'Endpoint' configuration is required for this service" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters