Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-718

API: Arg to Database.inBatch should be able to throw

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.7.0
    • 3.0
    • API, Java-Android
    • Security Level: Public
    • None
    • Blake 34
    • 1

    Description

      The argument to Database.inBatch is, currently, a Runnable. Runnables cannot throw. That means that client code has to wrap calls that do throw in clunky try-catch blocks that throw something unchecked.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          blake.meike Blake Meike created issue -
          blake.meike Blake Meike made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Minor [ 4 ]
          blake.meike Blake Meike made changes -
          Assignee The Lite [ cbgto ]
          blake.meike Blake Meike made changes -
          Story Points 1
          blake.meike Blake Meike made changes -
          Component/s API [ 15349 ]
          blake.meike Blake Meike made changes -
          Priority Minor [ 4 ] Major [ 3 ]
          blake.meike Blake Meike made changes -
          Summary Arg to Database.inBatch should be able to throw API: Arg to Database.inBatch should be able to throw
          blake.meike Blake Meike made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          pasin Pasin Suriyentrakorn made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          daniel.petersen Daniel Petersen made changes -
          Rank Ranked higher
          daniel.petersen Daniel Petersen made changes -
          Sprint Blake 34 [ 1319 ]
          daniel.petersen Daniel Petersen made changes -
          Rank Ranked lower
          daniel.petersen Daniel Petersen made changes -
          Assignee The Lite [ cbgto ] Blake Meike [ blake.meike ]
          daniel.petersen Daniel Petersen made changes -
          Rank Ranked higher
          blake.meike Blake Meike made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          blake.meike Blake Meike made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          daniel.petersen Daniel Petersen made changes -
          Component/s Java-AppServer [ 15345 ]

          People

            blake.meike Blake Meike
            blake.meike Blake Meike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty