errors.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package sso
  3. import (
  4. "github.com/aws/aws-sdk-go/private/protocol"
  5. )
  6. const (
  7. // ErrCodeInvalidRequestException for service response error code
  8. // "InvalidRequestException".
  9. //
  10. // Indicates that a problem occurred with the input to the request. For example,
  11. // a required parameter might be missing or out of range.
  12. ErrCodeInvalidRequestException = "InvalidRequestException"
  13. // ErrCodeResourceNotFoundException for service response error code
  14. // "ResourceNotFoundException".
  15. //
  16. // The specified resource doesn't exist.
  17. ErrCodeResourceNotFoundException = "ResourceNotFoundException"
  18. // ErrCodeTooManyRequestsException for service response error code
  19. // "TooManyRequestsException".
  20. //
  21. // Indicates that the request is being made too frequently and is more than
  22. // what the server can handle.
  23. ErrCodeTooManyRequestsException = "TooManyRequestsException"
  24. // ErrCodeUnauthorizedException for service response error code
  25. // "UnauthorizedException".
  26. //
  27. // Indicates that the request is not authorized. This can happen due to an invalid
  28. // access token in the request.
  29. ErrCodeUnauthorizedException = "UnauthorizedException"
  30. )
  31. var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
  32. "InvalidRequestException": newErrorInvalidRequestException,
  33. "ResourceNotFoundException": newErrorResourceNotFoundException,
  34. "TooManyRequestsException": newErrorTooManyRequestsException,
  35. "UnauthorizedException": newErrorUnauthorizedException,
  36. }