Uploaded image for project: 'mod-finance-storage'
  1. mod-finance-storage
  2. MODFISTO-137

Return helpful information when delete Budget with assigned Expense Classes

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 6.0.0
    • None

    Description

      Purpose/Overview:
      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.

      Requirements/Scope:
      budgetExpenseClassReferenceError code is defined.

      Approach:
      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"

      Acceptance criteria:

      • Source code is changed
      • Unit test updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                aliaksandr_pautau Aliaksandr Pautau
                aliaksandr_pautau Aliaksandr Pautau
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases