Code example for SQLException

Methods: toString

0
          // TODO: This is kind of a hack, and it would be better to check for 
          // the existence of the column first. 
          db.execSQL("ALTER TABLE " + TABLE_NAME + " ADD COLUMN "
              + Items.STORY_ID + " TEXT DEFAULT NULL;");
        } catch (SQLException error) {
          Log.e(LOG_TAG, error.toString());
        } 
      } 
    } 
  } 
}