Code example for SQLException

Methods: e, getMessage

0
        	BankLogin bankLogin = null;
        	try { 
	        	mDbAdapter.open();
	        	bankLogin = mDbAdapter.fetchBankLogin(mRowId.intValue());
        	} catch (SQLException e) {
        		Log.e(TAG, e.getMessage(), e);
        	} finally { 
        		mDbAdapter.close();
        	} 
            if (bankLogin != null) {
	            mNameText.setText(bankLogin.getName());
	            mUsernameText.setText(bankLogin.getUsername());
	            mPasswordText.setText(bankLogin.getPassword());
	            mSpinner.setSelection(bankLogin.getBankId() - 1); // TODO: not very robust, fix later
            } 
        } 
    } 
     
    @Override 
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);