Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14525

Handle database transaction errors as an exception

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.1.0alpha2
    • Database related
    • None

    Description

      Currently there is some custom code that handles DB transaction errors in the db library. Actually, such a transaction error can be seen as an exception, and should be handled by PHP exceptions.

      Just throw a DatabaseTransactionException (or whatever you want to call it) and let the default exception handler handle the further execution.

      Attachments

        Activity

          People

            unknown unknown
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: