src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

errors.go (10330B)


      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 	ErrorCodeOverride *string
     15 
     16 	Error_            *string
     17 	Error_description *string
     18 
     19 	noSmithyDocumentSerde
     20 }
     21 
     22 func (e *AccessDeniedException) Error() string {
     23 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     24 }
     25 func (e *AccessDeniedException) ErrorMessage() string {
     26 	if e.Message == nil {
     27 		return ""
     28 	}
     29 	return *e.Message
     30 }
     31 func (e *AccessDeniedException) ErrorCode() string {
     32 	if e == nil || e.ErrorCodeOverride == nil {
     33 		return "AccessDeniedException"
     34 	}
     35 	return *e.ErrorCodeOverride
     36 }
     37 func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     38 
     39 // Indicates that a request to authorize a client with an access user session
     40 // token is pending.
     41 type AuthorizationPendingException struct {
     42 	Message *string
     43 
     44 	ErrorCodeOverride *string
     45 
     46 	Error_            *string
     47 	Error_description *string
     48 
     49 	noSmithyDocumentSerde
     50 }
     51 
     52 func (e *AuthorizationPendingException) Error() string {
     53 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     54 }
     55 func (e *AuthorizationPendingException) ErrorMessage() string {
     56 	if e.Message == nil {
     57 		return ""
     58 	}
     59 	return *e.Message
     60 }
     61 func (e *AuthorizationPendingException) ErrorCode() string {
     62 	if e == nil || e.ErrorCodeOverride == nil {
     63 		return "AuthorizationPendingException"
     64 	}
     65 	return *e.ErrorCodeOverride
     66 }
     67 func (e *AuthorizationPendingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     68 
     69 // Indicates that the token issued by the service is expired and is no longer
     70 // valid.
     71 type ExpiredTokenException struct {
     72 	Message *string
     73 
     74 	ErrorCodeOverride *string
     75 
     76 	Error_            *string
     77 	Error_description *string
     78 
     79 	noSmithyDocumentSerde
     80 }
     81 
     82 func (e *ExpiredTokenException) Error() string {
     83 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
     84 }
     85 func (e *ExpiredTokenException) ErrorMessage() string {
     86 	if e.Message == nil {
     87 		return ""
     88 	}
     89 	return *e.Message
     90 }
     91 func (e *ExpiredTokenException) ErrorCode() string {
     92 	if e == nil || e.ErrorCodeOverride == nil {
     93 		return "ExpiredTokenException"
     94 	}
     95 	return *e.ErrorCodeOverride
     96 }
     97 func (e *ExpiredTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
     98 
     99 // Indicates that an error from the service occurred while trying to process a
    100 // request.
    101 type InternalServerException struct {
    102 	Message *string
    103 
    104 	ErrorCodeOverride *string
    105 
    106 	Error_            *string
    107 	Error_description *string
    108 
    109 	noSmithyDocumentSerde
    110 }
    111 
    112 func (e *InternalServerException) Error() string {
    113 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    114 }
    115 func (e *InternalServerException) ErrorMessage() string {
    116 	if e.Message == nil {
    117 		return ""
    118 	}
    119 	return *e.Message
    120 }
    121 func (e *InternalServerException) ErrorCode() string {
    122 	if e == nil || e.ErrorCodeOverride == nil {
    123 		return "InternalServerException"
    124 	}
    125 	return *e.ErrorCodeOverride
    126 }
    127 func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
    128 
    129 // Indicates that the clientId or clientSecret in the request is invalid. For
    130 // example, this can occur when a client sends an incorrect clientId or an expired
    131 // clientSecret .
    132 type InvalidClientException struct {
    133 	Message *string
    134 
    135 	ErrorCodeOverride *string
    136 
    137 	Error_            *string
    138 	Error_description *string
    139 
    140 	noSmithyDocumentSerde
    141 }
    142 
    143 func (e *InvalidClientException) Error() string {
    144 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    145 }
    146 func (e *InvalidClientException) ErrorMessage() string {
    147 	if e.Message == nil {
    148 		return ""
    149 	}
    150 	return *e.Message
    151 }
    152 func (e *InvalidClientException) ErrorCode() string {
    153 	if e == nil || e.ErrorCodeOverride == nil {
    154 		return "InvalidClientException"
    155 	}
    156 	return *e.ErrorCodeOverride
    157 }
    158 func (e *InvalidClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    159 
    160 // Indicates that the client information sent in the request during registration
    161 // is invalid.
    162 type InvalidClientMetadataException struct {
    163 	Message *string
    164 
    165 	ErrorCodeOverride *string
    166 
    167 	Error_            *string
    168 	Error_description *string
    169 
    170 	noSmithyDocumentSerde
    171 }
    172 
    173 func (e *InvalidClientMetadataException) Error() string {
    174 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    175 }
    176 func (e *InvalidClientMetadataException) ErrorMessage() string {
    177 	if e.Message == nil {
    178 		return ""
    179 	}
    180 	return *e.Message
    181 }
    182 func (e *InvalidClientMetadataException) ErrorCode() string {
    183 	if e == nil || e.ErrorCodeOverride == nil {
    184 		return "InvalidClientMetadataException"
    185 	}
    186 	return *e.ErrorCodeOverride
    187 }
    188 func (e *InvalidClientMetadataException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    189 
    190 // Indicates that a request contains an invalid grant. This can occur if a client
    191 // makes a CreateToken request with an invalid grant type.
    192 type InvalidGrantException struct {
    193 	Message *string
    194 
    195 	ErrorCodeOverride *string
    196 
    197 	Error_            *string
    198 	Error_description *string
    199 
    200 	noSmithyDocumentSerde
    201 }
    202 
    203 func (e *InvalidGrantException) Error() string {
    204 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    205 }
    206 func (e *InvalidGrantException) ErrorMessage() string {
    207 	if e.Message == nil {
    208 		return ""
    209 	}
    210 	return *e.Message
    211 }
    212 func (e *InvalidGrantException) ErrorCode() string {
    213 	if e == nil || e.ErrorCodeOverride == nil {
    214 		return "InvalidGrantException"
    215 	}
    216 	return *e.ErrorCodeOverride
    217 }
    218 func (e *InvalidGrantException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    219 
    220 // Indicates that something is wrong with the input to the request. For example, a
    221 // required parameter might be missing or out of range.
    222 type InvalidRequestException struct {
    223 	Message *string
    224 
    225 	ErrorCodeOverride *string
    226 
    227 	Error_            *string
    228 	Error_description *string
    229 
    230 	noSmithyDocumentSerde
    231 }
    232 
    233 func (e *InvalidRequestException) Error() string {
    234 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    235 }
    236 func (e *InvalidRequestException) ErrorMessage() string {
    237 	if e.Message == nil {
    238 		return ""
    239 	}
    240 	return *e.Message
    241 }
    242 func (e *InvalidRequestException) ErrorCode() string {
    243 	if e == nil || e.ErrorCodeOverride == nil {
    244 		return "InvalidRequestException"
    245 	}
    246 	return *e.ErrorCodeOverride
    247 }
    248 func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    249 
    250 // Indicates that a token provided as input to the request was issued by and is
    251 // only usable by calling IAM Identity Center endpoints in another region.
    252 type InvalidRequestRegionException struct {
    253 	Message *string
    254 
    255 	ErrorCodeOverride *string
    256 
    257 	Error_            *string
    258 	Error_description *string
    259 	Endpoint          *string
    260 	Region            *string
    261 
    262 	noSmithyDocumentSerde
    263 }
    264 
    265 func (e *InvalidRequestRegionException) Error() string {
    266 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    267 }
    268 func (e *InvalidRequestRegionException) ErrorMessage() string {
    269 	if e.Message == nil {
    270 		return ""
    271 	}
    272 	return *e.Message
    273 }
    274 func (e *InvalidRequestRegionException) ErrorCode() string {
    275 	if e == nil || e.ErrorCodeOverride == nil {
    276 		return "InvalidRequestRegionException"
    277 	}
    278 	return *e.ErrorCodeOverride
    279 }
    280 func (e *InvalidRequestRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    281 
    282 // Indicates that the scope provided in the request is invalid.
    283 type InvalidScopeException struct {
    284 	Message *string
    285 
    286 	ErrorCodeOverride *string
    287 
    288 	Error_            *string
    289 	Error_description *string
    290 
    291 	noSmithyDocumentSerde
    292 }
    293 
    294 func (e *InvalidScopeException) Error() string {
    295 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    296 }
    297 func (e *InvalidScopeException) ErrorMessage() string {
    298 	if e.Message == nil {
    299 		return ""
    300 	}
    301 	return *e.Message
    302 }
    303 func (e *InvalidScopeException) ErrorCode() string {
    304 	if e == nil || e.ErrorCodeOverride == nil {
    305 		return "InvalidScopeException"
    306 	}
    307 	return *e.ErrorCodeOverride
    308 }
    309 func (e *InvalidScopeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    310 
    311 // Indicates that the client is making the request too frequently and is more than
    312 // the service can handle.
    313 type SlowDownException struct {
    314 	Message *string
    315 
    316 	ErrorCodeOverride *string
    317 
    318 	Error_            *string
    319 	Error_description *string
    320 
    321 	noSmithyDocumentSerde
    322 }
    323 
    324 func (e *SlowDownException) Error() string {
    325 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    326 }
    327 func (e *SlowDownException) ErrorMessage() string {
    328 	if e.Message == nil {
    329 		return ""
    330 	}
    331 	return *e.Message
    332 }
    333 func (e *SlowDownException) ErrorCode() string {
    334 	if e == nil || e.ErrorCodeOverride == nil {
    335 		return "SlowDownException"
    336 	}
    337 	return *e.ErrorCodeOverride
    338 }
    339 func (e *SlowDownException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    340 
    341 // Indicates that the client is not currently authorized to make the request. This
    342 // can happen when a clientId is not issued for a public client.
    343 type UnauthorizedClientException struct {
    344 	Message *string
    345 
    346 	ErrorCodeOverride *string
    347 
    348 	Error_            *string
    349 	Error_description *string
    350 
    351 	noSmithyDocumentSerde
    352 }
    353 
    354 func (e *UnauthorizedClientException) Error() string {
    355 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    356 }
    357 func (e *UnauthorizedClientException) ErrorMessage() string {
    358 	if e.Message == nil {
    359 		return ""
    360 	}
    361 	return *e.Message
    362 }
    363 func (e *UnauthorizedClientException) ErrorCode() string {
    364 	if e == nil || e.ErrorCodeOverride == nil {
    365 		return "UnauthorizedClientException"
    366 	}
    367 	return *e.ErrorCodeOverride
    368 }
    369 func (e *UnauthorizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
    370 
    371 // Indicates that the grant type in the request is not supported by the service.
    372 type UnsupportedGrantTypeException struct {
    373 	Message *string
    374 
    375 	ErrorCodeOverride *string
    376 
    377 	Error_            *string
    378 	Error_description *string
    379 
    380 	noSmithyDocumentSerde
    381 }
    382 
    383 func (e *UnsupportedGrantTypeException) Error() string {
    384 	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
    385 }
    386 func (e *UnsupportedGrantTypeException) ErrorMessage() string {
    387 	if e.Message == nil {
    388 		return ""
    389 	}
    390 	return *e.Message
    391 }
    392 func (e *UnsupportedGrantTypeException) ErrorCode() string {
    393 	if e == nil || e.ErrorCodeOverride == nil {
    394 		return "UnsupportedGrantTypeException"
    395 	}
    396 	return *e.ErrorCodeOverride
    397 }
    398 func (e *UnsupportedGrantTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }