Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10283

Defined dedicated RepoInit RuntimeException instead of throwing generic RuntimeException/IllegalStateException/IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Repoinit
    • None

    Description

      Extracted from review finding for SLING-10281:
      IMHO it would be better to throw dedicated repo-init-runtime-exceptions that come with an error-code and a message instead of throwing RuntimeException, IllegalStateException and IllegalArgumentException.
      that would allow to document the various error codes along with explanations of the root cause and instructions on how to fix the corresponding repo-init statements.

      kwin, fyi.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: