Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48a47896 authored by Jeff Brown's avatar Jeff Brown
Browse files

Remove custom SQLITE_UNCLOSED error code.

This error code was introduced at some point to help track when
a database could not be closed because a statement was not finalized.
Now that the DB wrappers have been rewritten, it is technically no longer
poossible for this to happen, so we can remove this.

Change-Id: Ibbd55debbf390af436d6533aebff9726b1ff29e7
parent 2a293b61
Loading
Loading
Loading
Loading
+0 −31
Original line number Diff line number Diff line
/*
 * Copyright (C) 2010 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.database.sqlite;

/**
 * Thrown if the database can't be closed because of some un-closed
 * Cursor or SQLiteStatement objects. Could happen when a thread is trying to close
 * the database while another thread still hasn't closed a Cursor on that database.
 * @hide
 */
public class SQLiteUnfinalizedObjectsException extends SQLiteException {
    public SQLiteUnfinalizedObjectsException() {}

    public SQLiteUnfinalizedObjectsException(String error) {
        super(error);
    }
}
+0 −3
Original line number Diff line number Diff line
@@ -109,9 +109,6 @@ void throw_sqlite3_exception(JNIEnv* env, int errcode,
        case SQLITE_MISMATCH:
           exceptionClass = "android/database/sqlite/SQLiteDatatypeMismatchException";
           break;
        case SQLITE_UNCLOSED:
           exceptionClass = "android/database/sqlite/SQLiteUnfinalizedObjectsException";
           break;
        default:
           exceptionClass = "android/database/sqlite/SQLiteException";
           break;