Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-89

Improve exception handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.1
    • 0.3
    • core, jcr
    • None

    Description

      As discusses on the @oak-dev list [1] we need to improve the way exceptions are thrown and handled.

      I suggest to create a OakException which extends from RuntimeException and encapsulate a RepositoryException into it. These exceptions can then be handled where appropriate. We can the later turn this into a more sophisticated mechanism where the OakException is mapped to a corresponding RepositoryException by an injected mapping (see Jukka's proposal in the discussion).

      [1] http://markmail.org/message/t5czrpkvyamn7sym

      Attachments

        1. OAK-89.patch
          45 kB
          Michael Dürig
        2. OAK-89-2.patch
          48 kB
          Michael Dürig
        3. OAK-89.patch
          22 kB
          Jukka Zitting
        4. OAK-89-3.patch
          34 kB
          Michael Dürig
        5. OAK-89-3-changes.patch
          27 kB
          Jukka Zitting

        Activity

          People

            Unassigned Unassigned
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: