private static final int readExceptionCode(Parcel paramParcel) { int j = paramParcel.readInt(); int i = j; if (j == -128) { if (paramParcel.readInt() == 0) { Log.e("DatabaseUtils", "Unexpected zero-sized Parcel reply header."); } i = 0; } return i; }
public long execute() { if (mPreparedStatement == null) { throw new IllegalStateException("you must prepare this inserter before calling execute"); } try { long l = mPreparedStatement.executeInsert(); return l; } catch (SQLException localSQLException) { Log.e("DatabaseUtils", "Error executing InsertHelper with table " + mTableName, new Object[] { localSQLException }); return -1L; } finally { mPreparedStatement = null; } }
public static final void writeExceptionToParcel(Parcel paramParcel, Exception paramException) { int i; int j; if ((paramException instanceof FileNotFoundException)) { i = 0; j = 1; } for (;;) { paramParcel.writeInt(j); paramParcel.writeString(paramException.getMessage()); if (i != 0) { Log.e("DatabaseUtils", "Writing exception to parcel", new Object[] { paramException }); } return; if ((paramException instanceof IllegalArgumentException)) { j = 2; i = 1; } else if ((paramException instanceof UnsupportedOperationException)) { j = 3; i = 1; } else if ((paramException instanceof SQLiteAbortException)) { j = 4; i = 1; } else if ((paramException instanceof SQLiteConstraintException)) { j = 5; i = 1; } else if ((paramException instanceof SQLiteDatabaseCorruptException)) { j = 6; i = 1; } else if ((paramException instanceof SQLiteFullException)) { j = 7; i = 1; } else if ((paramException instanceof SQLiteDiskIOException)) { j = 8; i = 1; } else if ((paramException instanceof SQLiteException)) { j = 9; i = 1; } else if ((paramException instanceof OperationApplicationException)) { j = 10; i = 1; } else { if (!(paramException instanceof OperationCanceledException)) { break; } j = 11; i = 0; } } paramParcel.writeException(paramException); Log.e("DatabaseUtils", "Writing exception to parcel", new Object[] { paramException }); }