CredentialBrokerControl / Client / exceptions / ValidationException
ValidationException¶
- class CredentialBrokerControl.Client.exceptions.ValidationException¶
The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault.Example
try: ... except client.exceptions.ValidationException 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
{ 'message': 'string', 'reason': 'MISSING_REQUIRED_FIELD'|'INVALID_FIELD_VALUE'|'INVALID_SECRET_REFERENCE'|'FIELD_COMBINATION_INVALID'|'UNSUPPORTED_CONFIGURATION'|'IMMUTABLE_FIELD_CHANGE'|'IDEMPOTENT_PARAMETER_MISMATCH'|'INVALID_IDENTITY_CENTER_INSTANCE_REFERENCE'|'KMS_KEY_NOT_FOUND'|'KMS_KEY_DISABLED'|'KMS_KEY_INVALID_STATE'|'KMS_KEY_INVALID_USAGE'|'INVALID_DISCOVERY_METADATA'|'INVALID_IDP_RESPONSE'|'SESSION_BINDING_URL_NOT_ALLOWED'|'GRANT_TYPE_NOT_ALLOWED'|'EXTERNAL_IDP_UNAVAILABLE', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault.message (string) –
reason (string) –
Identifies which validation check a request failed. New values may be added over time, so treat an unrecognized value as a generic validation failure and rely on
messagefor detail.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.