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

          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