Error message not helpful when deleting budget with expense classes.
If we try to delete "Budget" with existing budget expense class records, then exception is thrown from DB, due foreign key constrain.
budgetExpenseClassReferenceError code is defined.
Take a look approach from https://issues.folio.org/browse/MODFISTO-101
Main idea build string, which valid _org.folio.rest.jaxrs.model.Error _
Catch constrain exception and send in Error code "budgetExpenseClassReferenceError"
- Source code is changed
- Unit test updated