ValidationException is returned to the caller when a function is invoked with invalid parameters. In case of validation error all invalid parameter / fields are listed with particular error codes. The returned message contains one or more of the following fields:
{1} Error message as a string
{2} Error code
{3} PTM service address
{4} Exception message
{5} Name of the field which does not cover the validation requirements
{6} Error code associated with the validated field
{7} Error type associated with the validated field
{8} Error messages associated with the validated field
{9} List of error parameters associated with the validated field, if any
{10} List of sub-fields associated with the validated field, if any
The code below shows a sample structure returned on BINETIX NETWORK.
|