intuit / QuickBooks-V3-Java-SDK

Java SDK for QuickBooks REST API v3 services
Apache License 2.0
70 stars 144 forks source link

Validation fault fix #191

Open lamflam opened 2 years ago

lamflam commented 2 years ago

I recently got a validation error from the API that was coming through as a generic FSMException. After digging in I realized that fault.getType() has ValidationFault, not Validation which meant it missed this case in the error mapping and bubbled up as a generic unknown exception. This PR just adds the case to handle it as a ValidationException.