List of usage examples for android.database.sqlite SQLiteDiskIOException SQLiteDiskIOException
public SQLiteDiskIOException(String error)
From source file:com.mp3tunes.android.player.content.LockerDb.java
public LockerDb(Context context) { mLocker = new Locker(); // Open the database mDb = (new LockerDbHelper(context, null)).getWritableDatabase(); if (mDb == null) { throw new SQLiteDiskIOException("Error creating database"); }/*from w w w . j ava2 s. c om*/ mDb.setLockingEnabled(true); mQueries = new Queries(this); mContext = context; mCache = LockerCache.loadCache(this); }
From source file:android.database.DatabaseUtils.java
private static final void readExceptionFromParcel(Parcel reply, String msg, int code) { switch (code) { case 2://from w w w . j a v a 2s .c o m throw new IllegalArgumentException(msg); case 3: throw new UnsupportedOperationException(msg); case 4: throw new SQLiteAbortException(msg); case 5: throw new SQLiteConstraintException(msg); case 6: throw new SQLiteDatabaseCorruptException(msg); case 7: throw new SQLiteFullException(msg); case 8: throw new SQLiteDiskIOException(msg); case 9: throw new SQLiteException(msg); default: reply.readException(code, msg); } }