Code example for SQLException

Methods: getMessage

0
        public void onCreate(SQLiteDatabase database) {
            try { 
                database.execSQL(SQL_CREATE_META_TABLE);
                database.execSQL(SQL_CREATE_LOCATION_TABLE);
            } catch (SQLException e) {
                Helper.Logger.e(e.getMessage());
            } 
        } 
 
        @Override 
        public void onUpgrade(SQLiteDatabase database, int i, int i1) {
 
        } 
    } 
 
    protected String name;
    private ArrayList<Location> locations;
    private ArchiveMeta meta;
    protected ArchiveDatabaseHelper databaseHelper = null;
    protected SQLiteDatabase database;
    protected Context context;