Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4705

Update try/catch blocks to be more targeted

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We have quite a number of catch (Exception ...) and catch (Throwable ...) statement. Many of these are expecting specific errors. They should catch only those errors. For instance app/controllers/admin_clients.php preAction() uses catch (Throwable ...) when it could use catch (ArgumentCountError ...).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: