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

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Labels:
      None
    • Template:
      Thunderjet/Firebird Back-end Story Template
    • Sprint:
      ACQ Sprint 97
    • Story Points:
      1
    • Development Team:
      Thunderjet

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases