Account / Client / exceptions / ValidationException
ValidationException#
- class Account.Client.exceptions.ValidationException#
The operation failed because one of the input parameters was invalid.
Example
try: ... except client.exceptions.ValidationException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'fieldList': [ { 'message': 'string', 'name': 'string' }, ], 'message': 'string', 'reason': 'invalidRegionOptTarget'|'fieldValidationFailed', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The operation failed because one of the input parameters was invalid.
fieldList (list) –
The field where the invalid entry was detected.
(dict) –
The input failed to meet the constraints specified by the Amazon Web Services service in a specified field.
message (string) –
A message about the validation exception.
name (string) –
The field name where the invalid entry was detected.
message (string) –
The message that informs you about what was invalid about the request.
reason (string) –
The reason that validation failed.
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.