code.dwrz.net

Go monorepo.
Log | Files | Refs

errors.go (8281B)


      1 // Code generated by smithy-go-codegen DO NOT EDIT.
      2 
      3 package types
      4 
      5 import (
      6 	"fmt"
      7 	smithy "github.com/aws/smithy-go"
      8 )
      9 
     10 // You do not have sufficient access to perform this action.
     11 type AccessDeniedException struct {
     12 	Message *string
     13 
     14 	Error_            *string
     15 	Error_description *string
     16 
     17 	noSmithyDocumentSerde
     18 }
     19 
     20 func (e *AccessDeniedException) Error() string {
     21 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     22 }
     23 func (e *AccessDeniedException) ErrorMessage() string {
     24 	if e.Message == nil {
     25 		return ""
     26 	}
     27 	return *e.Message
     28 }
     29 func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
     30 func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     31 
     32 // Indicates that a request to authorize a client with an access user session token
     33 // is pending.
     34 type AuthorizationPendingException struct {
     35 	Message *string
     36 
     37 	Error_            *string
     38 	Error_description *string
     39 
     40 	noSmithyDocumentSerde
     41 }
     42 
     43 func (e *AuthorizationPendingException) Error() string {
     44 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     45 }
     46 func (e *AuthorizationPendingException) ErrorMessage() string {
     47 	if e.Message == nil {
     48 		return ""
     49 	}
     50 	return *e.Message
     51 }
     52 func (e *AuthorizationPendingException) ErrorCode() string             { return "AuthorizationPendingException" }
     53 func (e *AuthorizationPendingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     54 
     55 // Indicates that the token issued by the service is expired and is no longer
     56 // valid.
     57 type ExpiredTokenException struct {
     58 	Message *string
     59 
     60 	Error_            *string
     61 	Error_description *string
     62 
     63 	noSmithyDocumentSerde
     64 }
     65 
     66 func (e *ExpiredTokenException) Error() string {
     67 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     68 }
     69 func (e *ExpiredTokenException) ErrorMessage() string {
     70 	if e.Message == nil {
     71 		return ""
     72 	}
     73 	return *e.Message
     74 }
     75 func (e *ExpiredTokenException) ErrorCode() string             { return "ExpiredTokenException" }
     76 func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     77 
     78 // Indicates that an error from the service occurred while trying to process a
     79 // request.
     80 type InternalServerException struct {
     81 	Message *string
     82 
     83 	Error_            *string
     84 	Error_description *string
     85 
     86 	noSmithyDocumentSerde
     87 }
     88 
     89 func (e *InternalServerException) Error() string {
     90 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     91 }
     92 func (e *InternalServerException) ErrorMessage() string {
     93 	if e.Message == nil {
     94 		return ""
     95 	}
     96 	return *e.Message
     97 }
     98 func (e *InternalServerException) ErrorCode() string             { return "InternalServerException" }
     99 func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
    100 
    101 // Indicates that the clientId or clientSecret in the request is invalid. For
    102 // example, this can occur when a client sends an incorrect clientId or an expired
    103 // clientSecret.
    104 type InvalidClientException struct {
    105 	Message *string
    106 
    107 	Error_            *string
    108 	Error_description *string
    109 
    110 	noSmithyDocumentSerde
    111 }
    112 
    113 func (e *InvalidClientException) Error() string {
    114 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    115 }
    116 func (e *InvalidClientException) ErrorMessage() string {
    117 	if e.Message == nil {
    118 		return ""
    119 	}
    120 	return *e.Message
    121 }
    122 func (e *InvalidClientException) ErrorCode() string             { return "InvalidClientException" }
    123 func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    124 
    125 // Indicates that the client information sent in the request during registration is
    126 // invalid.
    127 type InvalidClientMetadataException struct {
    128 	Message *string
    129 
    130 	Error_            *string
    131 	Error_description *string
    132 
    133 	noSmithyDocumentSerde
    134 }
    135 
    136 func (e *InvalidClientMetadataException) Error() string {
    137 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    138 }
    139 func (e *InvalidClientMetadataException) ErrorMessage() string {
    140 	if e.Message == nil {
    141 		return ""
    142 	}
    143 	return *e.Message
    144 }
    145 func (e *InvalidClientMetadataException) ErrorCode() string             { return "InvalidClientMetadataException" }
    146 func (e *InvalidClientMetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    147 
    148 // Indicates that a request contains an invalid grant. This can occur if a client
    149 // makes a CreateToken request with an invalid grant type.
    150 type InvalidGrantException struct {
    151 	Message *string
    152 
    153 	Error_            *string
    154 	Error_description *string
    155 
    156 	noSmithyDocumentSerde
    157 }
    158 
    159 func (e *InvalidGrantException) Error() string {
    160 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    161 }
    162 func (e *InvalidGrantException) ErrorMessage() string {
    163 	if e.Message == nil {
    164 		return ""
    165 	}
    166 	return *e.Message
    167 }
    168 func (e *InvalidGrantException) ErrorCode() string             { return "InvalidGrantException" }
    169 func (e *InvalidGrantException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    170 
    171 // Indicates that something is wrong with the input to the request. For example, a
    172 // required parameter might be missing or out of range.
    173 type InvalidRequestException struct {
    174 	Message *string
    175 
    176 	Error_            *string
    177 	Error_description *string
    178 
    179 	noSmithyDocumentSerde
    180 }
    181 
    182 func (e *InvalidRequestException) Error() string {
    183 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    184 }
    185 func (e *InvalidRequestException) ErrorMessage() string {
    186 	if e.Message == nil {
    187 		return ""
    188 	}
    189 	return *e.Message
    190 }
    191 func (e *InvalidRequestException) ErrorCode() string             { return "InvalidRequestException" }
    192 func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    193 
    194 // Indicates that the scope provided in the request is invalid.
    195 type InvalidScopeException struct {
    196 	Message *string
    197 
    198 	Error_            *string
    199 	Error_description *string
    200 
    201 	noSmithyDocumentSerde
    202 }
    203 
    204 func (e *InvalidScopeException) Error() string {
    205 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    206 }
    207 func (e *InvalidScopeException) ErrorMessage() string {
    208 	if e.Message == nil {
    209 		return ""
    210 	}
    211 	return *e.Message
    212 }
    213 func (e *InvalidScopeException) ErrorCode() string             { return "InvalidScopeException" }
    214 func (e *InvalidScopeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    215 
    216 // Indicates that the client is making the request too frequently and is more than
    217 // the service can handle.
    218 type SlowDownException struct {
    219 	Message *string
    220 
    221 	Error_            *string
    222 	Error_description *string
    223 
    224 	noSmithyDocumentSerde
    225 }
    226 
    227 func (e *SlowDownException) Error() string {
    228 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    229 }
    230 func (e *SlowDownException) ErrorMessage() string {
    231 	if e.Message == nil {
    232 		return ""
    233 	}
    234 	return *e.Message
    235 }
    236 func (e *SlowDownException) ErrorCode() string             { return "SlowDownException" }
    237 func (e *SlowDownException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    238 
    239 // Indicates that the client is not currently authorized to make the request. This
    240 // can happen when a clientId is not issued for a public client.
    241 type UnauthorizedClientException struct {
    242 	Message *string
    243 
    244 	Error_            *string
    245 	Error_description *string
    246 
    247 	noSmithyDocumentSerde
    248 }
    249 
    250 func (e *UnauthorizedClientException) Error() string {
    251 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    252 }
    253 func (e *UnauthorizedClientException) ErrorMessage() string {
    254 	if e.Message == nil {
    255 		return ""
    256 	}
    257 	return *e.Message
    258 }
    259 func (e *UnauthorizedClientException) ErrorCode() string             { return "UnauthorizedClientException" }
    260 func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    261 
    262 // Indicates that the grant type in the request is not supported by the service.
    263 type UnsupportedGrantTypeException struct {
    264 	Message *string
    265 
    266 	Error_            *string
    267 	Error_description *string
    268 
    269 	noSmithyDocumentSerde
    270 }
    271 
    272 func (e *UnsupportedGrantTypeException) Error() string {
    273 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    274 }
    275 func (e *UnsupportedGrantTypeException) ErrorMessage() string {
    276 	if e.Message == nil {
    277 		return ""
    278 	}
    279 	return *e.Message
    280 }
    281 func (e *UnsupportedGrantTypeException) ErrorCode() string             { return "UnsupportedGrantTypeException" }
    282 func (e *UnsupportedGrantTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }