Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1062

Platform Exceptions have no message

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • None

    Description

      While analysing FINERACT-1060, I thought it was a bit curious that that UserNotFoundException showed up as UserNotFoundException: null, instead of something like User with name 'system' does not exist.

      Looking into this further, I suspect that this is related to that entire business which Fineract (apparently) has of of exception with "user" messages that can be translated (somehow, somewhere).

      What's missing & confusing, at least if these exceptions are then also used for error logging, is that the "normal" exception message is never set.

      It should be fairly simply to actually set it to be that "defaultUserMessage" (especially after doing some refactoring which I thought would be natural to do after Manthan Surkar work in https://github.com/apache/fineract/pull/1079 for FINERACT-942), so I'll propose a PR related to this.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vorburger Michael Vorburger
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment