Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 4127:1e9e7b7d9f15
More fixes for #897: missing resource exceptions when handling other exceptions
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 14 Oct 2012 09:46:58 +0200 |
parents | 6a8f83c538e3 |
children | 4c2005e6ac65 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Sat Oct 13 21:29:45 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Sun Oct 14 09:46:58 2012 +0200 @@ -2,6 +2,7 @@ import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; + import com.smartgwt.client.types.Alignment; import com.smartgwt.client.types.VerticalAlignment; import com.smartgwt.client.util.SC; @@ -262,7 +263,7 @@ @Override public void onFailure(Throwable caught) { GWT.log("Could not create the new collection."); - SC.warn(messages.getString(caught.getMessage())); + SC.warn(FLYS.getExceptionString(messages, caught)); } @Override @@ -441,7 +442,7 @@ @Override public void onFailure(Throwable caught) { GWT.log("Could not DESCRIBE collection."); - SC.warn(messages.getString(caught.getMessage())); + SC.warn(FLYS.getExceptionString(messages, caught)); } @@ -664,7 +665,7 @@ @Override public void onFailure(Throwable caught) { GWT.log("An error occured while adding artifact."); - SC.warn(messages.getString(caught.getMessage())); + SC.warn(FLYS.getExceptionString(messages, caught)); } @Override @@ -692,7 +693,7 @@ setCollection(collection); GWT.log("An error occured while saving recommendations."); - // TODO POPUP WARNING + SC.warn(FLYS.getExceptionString(messages, caught)); } @Override @@ -742,6 +743,7 @@ public void onFailure(Throwable caught) { GWT.log("Error loading recommendations: " + caught.getMessage()); + SC.warn(FLYS.getExceptionString(messages, caught)); } @Override