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
    • Resolution: Fixed
    • Critical
    • 3.0
    • 2.7.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

        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:

              PagerDuty