Code example for SQLiteConstraintException

Methods: getMessage

0
					return 0; 
				} catch (DBOpenException e) {
					Log.e("DB_ERROR - OPEN DATABASE",e.getMessage());
					return -1; 
				} catch (SQLiteConstraintException e) {
					Log.e("DB_ERROR - SQLITE COSTRAINT",e.getMessage());
					return -2; 
				} 
    		 
    		} 
    	case 6: 
    			 
    		 
    			try { 
    				Integer id=(Integer)params[1];
    				return getNodesById(id);
    			} catch (DBOpenException e) {
    				Log.e("DB_ERROR - OPEN DATABASE",e.getMessage());
    			} 
    			 
    	    	break;