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.
I recently got a validation error from the API that was coming through as a generic
FSMException
. After digging in I realized thatfault.getType()
hasValidationFault
, notValidation
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 aValidationException
.