Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-236

Throw exceptions from constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.0
    • None
    • library
    • Security Level: Public
    • None

    Description

      Documentation shows that exceptions should be thrown from the ctor if the connection isn't successfully established, but that's not how things currently behave. See:

      http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-connection.html#table-couchbase-sdk_php_new_couchbase

      Also, there was some question of whether or not getResultCode() should be used instead of an exception handling path.

      This shows that getResultCode() and getResultMessage() are deprecated
      http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-summary-errors.html

      Attachments

        For Gerrit Dashboard: PCBC-236
        # Subject Branch Project Status CR V

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty