SSOOIDC / Client / exceptions / InvalidRequestRegionException
InvalidRequestRegionException¶
- class SSOOIDC.Client.exceptions.InvalidRequestRegionException¶
- Indicates that a token provided as input to the request was issued by and is only usable by calling IAM Identity Center endpoints in another region. - Example- try: ... except client.exceptions.InvalidRequestRegionException as e: print(e.response) - response¶
- The parsed error response. All exceptions have a top level - Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.- Syntax- { 'error': 'string', 'error_description': 'string', 'endpoint': 'string', 'region': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } } - Structure- (dict) – - Indicates that a token provided as input to the request was issued by and is only usable by calling IAM Identity Center endpoints in another region. - error (string) – - Single error code. For this exception the value will be - invalid_request.
- error_description (string) – - Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred. 
- endpoint (string) – - Indicates the IAM Identity Center endpoint which the requester may call with this token. 
- region (string) – - Indicates the region which the requester may call with this token. 
- Error (dict) – Normalized access to common exception attributes. - Code (string) – An identifier specifying the exception type. 
- Message (string) – A descriptive message explaining why the exception occured.