Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-2422

Remove redundant catch blocks in AdapterHttpHandler

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: Router
    • Labels:
    • Rank:
      1|hzysvj:

      Description

      In the past, we used to catch kinds of conditions in our handlers to respond with the correct HTTP status code. A recent change in netty-http makes that unnecessary if the exceptions extend some known base exceptions. We should remove all the unnecessary catch clauses from the handlers.

      Alvin Wang can you fill in more details?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alvin Alvin Wang
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: