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

Change execute method from class ActivationCommand to throw more specific exceptions

    XMLWordPrintable

Details

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

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD