TaxSettings / Client / exceptions / ValidationException
ValidationException#
- class TaxSettings.Client.exceptions.ValidationException#
The exception when the input doesn’t pass validation for at least one of the input parameters.
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
{ 'errorCode': 'MalformedToken'|'ExpiredToken'|'InvalidToken'|'FieldValidationFailed'|'MissingInput', 'fieldList': [ { 'name': 'string' }, ], 'message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The exception when the input doesn’t pass validation for at least one of the input parameters.
errorCode (string) –
400
fieldList (list) –
400
(dict) –
The information about the specified parameter in the request that caused an error.
name (string) –
The name of the parameter that caused a
ValidationException
error.
message (string) –
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.