Details

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

      Description

      Per our discussion on IRC/Twitter.

      It would be nice if all exceptions thrown had a common base, so something like this is possible to catch all exceptions from Doctrine:

      try {
          // some code here
      } catch (\Doctrine\Common\BaseException $e) {
          // something in Doctrine threw an exception, handle it here
      }
      

      (The name is just an example.)

      For reference:
      https://wiki.php.net/pear/rfc/pear2_exception_policy

        Activity

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Till
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: