Code example for SQLException

0
      getContext().getContentResolver().notifyChange(uri, null);
 
      return(uri);
    } 
 
    throw new SQLException("Failed to insert row into " + url);
  } 
 
  @Override 
  public int delete(Uri url, String where, String[] whereArgs) {
    int count=db.getWritableDatabase().delete(TABLE, where, whereArgs);
 
    getContext().getContentResolver().notifyChange(url, null);
 
    return(count);
  } 
 
  @Override 
  public int update(Uri url, ContentValues values, String where,
                    String[] whereArgs) {
    int count=