ResilienceHubV2 / Client / exceptions / ValidationException
ValidationException¶
- class ResilienceHubV2.Client.exceptions.ValidationException¶
Validation error — invalid input parameters.
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': 'INVALID_FIELD_VALUE'|'DUPLICATE_VALUE'|'MISSING_REQUIRED_FIELD'|'OTHER', 'fieldList': [ { 'name': 'string', 'message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Validation error — invalid input parameters.
message (string) –
reason (string) –
The reason for the validation failure.
fieldList (list) –
The list of fields that failed validation.
(dict) –
Describes a field that failed validation.
name (string) –
The name of the field that failed validation.
message (string) –
The validation error message for the field.
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.