Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1482

Many methods' signature just declare a throws Exception : this is not enough

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.5.6
    • 2.0.0-RC1
    • code quality
    • None

    Description

      We have many methods in the server API which just throws Exception, without any indication about the kind of exception that can be thrown. This is dangerous, and not enough if we want to know what to do when an exception occurs.

      We must through specific exception up the stack.

      For instance, the Store interface, the Table interface, etc are just throwing Exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: