When sending information to QuickBooks Online and QuickBooks does not like what you are sending you will get a ValidationException
.
This exception is clearly not too helpful as it is very vague. However, if you catch it and then look for the InnerExceptions
array of IdsError
you can find more information about what actually went wrong.
In my situation I would catch the main exception, ex
, and have to do this:
ex.InnerException.InnerExceptions(i).Message
From there you can either display it or concat all the errors together or anything else you want.