PartnerCentralRevenueMeasurementAPI / Client / exceptions / ValidationException
ValidationException¶
- class PartnerCentralRevenueMeasurementAPI.Client.exceptions.ValidationException¶
The request failed validation due to 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': 'REQUEST_VALIDATION_FAILED'|'BUSINESS_VALIDATION_FAILED', 'FieldList': [ { 'Name': 'string', 'Message': 'string', 'Code': 'REQUIRED_FIELD_MISSING'|'DUPLICATE_VALUE'|'INVALID_VALUE'|'INVALID_STRING_FORMAT'|'TOO_MANY_VALUES'|'ACTION_NOT_PERMITTED'|'INVALID_ENUM_VALUE'|'INVALID_NUMBER_FORMAT'|'INVALID_STRING_LENGTH' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request failed validation due to invalid input parameters.
Message (string) –
Reason (string) –
The reason for the validation failure.
FieldList (list) –
A list of fields that failed validation.
(dict) –
Details about a specific field that failed validation.
Name (string) –
The name of the field that failed validation.
Message (string) –
A human-readable message describing why the field validation failed.
Code (string) –
The specific validation error code indicating the type of validation failure.
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.