add stringer for ErrorCodes (#11933)

This commit is contained in:
Harshavardhana
2021-03-31 09:30:52 -07:00
committed by GitHub
parent 4dcce17eb9
commit 18dee6a333
4 changed files with 332 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ type APIErrorResponse struct {
// APIErrorCode type of error status.
type APIErrorCode int
//go:generate stringer -type=APIErrorCode -trimprefix=Err $GOFILE
// Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
const (
ErrNone APIErrorCode = iota