Revision 40597 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/EditionUtilities.java

View differences:

EditionUtilities.java
159 159
//		return lyrDef;
160 160
//	}
161 161

  
162

  
163
	public static String getLastMessage(Throwable ex) {
164
        
165
        Throwable p = ex;
166
        while (p.getCause() != null && p.getCause() != p) {
167
            p = p.getCause();
168
        }
169
        return p.getMessage();
170
    }
162 171
}

Also available in: Unified diff