Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3520

Code cleanup: Uncaught Exception

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Should have Should have
    • 1.53
    • 2
    • Code Refactoring
    • Sprint #87

      A function can throw an exception which is not catched when the function is called. Errors should be handled by the application to avoid undefined states, crashes, or exposure of sensitive information.

      Repo: Master-theme
      tests/bootstrap.php Line: 14

      throw new Exception("Could not find {$_tests_dir}/includes/functions.php, have you run bin/install-wp-tests.sh ?");
      

      footer.php Line: 14

      throw new \Exception('Timber context not set in footer.');
      

            sdeshmuk Sagar Deshmukh
            kkokkoro Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: