AppMonetization / Client / exceptions / ValidationException
ValidationException¶
- class AppMonetization.Client.exceptions.ValidationException¶
The request failed input validation.
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': 'UNKNOWN_OPERATION'|'CANNOT_PARSE'|'FIELD_VALIDATION_FAILED'|'OTHER', 'fieldList': [ { 'name': 'string', 'message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request failed input validation.
message (string) –
Human-readable description of what failed validation.
reason (string) –
Machine-readable reason the request failed validation, so callers act without parsing the message.
fieldList (list) –
The specific input fields that failed validation, when applicable.
(dict) –
An input field that failed validation, with the reason it failed.
name (string) –
The name of the input field that failed validation.
message (string) –
A human-readable description of why the field failed validation.
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.