Uploaded image for project: 'Activation'
  1. Activation
  2. MGNLACTIVATION-109

Change execute method from class ActivationCommand to throw more specific exceptions

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Neutral Neutral
    • None
    • 5.3.2

      The class ActivationCommand throws a generic Exception in its execute method. The primary reason why we should avoid throwing Generic Exceptions, Throwable, Error etc is that doing in this way prevents classes from catching the intended exceptions. Thus, a caller cannot examine the exception to determine why it was thrown and consequently cannot attempt recovery.

      • Further more I did notice this class uses the deprecated Content class

        Acceptance criteria

              Unassigned Unassigned
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD