Revision 47653 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toc/actions/LayerErrorsPanel.java
LayerErrorsPanel.java | ||
---|---|---|
120 | 120 |
continue; |
121 | 121 |
} |
122 | 122 |
String message = cause.getMessage(); |
123 |
if( message != null ) { |
|
124 |
if( !this.usedMsgs.contains(message) ) { |
|
125 |
this.usedMsgs.add(message); |
|
126 |
html.append("<li>"); |
|
127 |
html.append(message.replace("\n", "<br>\n")); |
|
128 |
if( cause.getCause() != null ) { |
|
129 |
this.build(ExceptionUtils.getThrowableList( |
|
130 |
cause.getCause())); |
|
131 |
} |
|
132 |
html.append("</li>\n"); |
|
123 |
if( message == null ) { |
|
124 |
message = cause.getClass().getSimpleName(); |
|
125 |
} |
|
126 |
if(message.startsWith("_")){ |
|
127 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
128 |
message = i18n.getTranslation(message); |
|
129 |
} |
|
130 |
if( !this.usedMsgs.contains(message) ) { |
|
131 |
this.usedMsgs.add(message); |
|
132 |
html.append("<li>"); |
|
133 |
html.append(message.replace("\n", "<br>\n")); |
|
134 |
if( cause.getCause() != null ) { |
|
135 |
this.build(ExceptionUtils.getThrowableList( |
|
136 |
cause.getCause())); |
|
133 | 137 |
} |
138 |
html.append("</li>\n"); |
|
134 | 139 |
} |
135 | 140 |
} |
136 | 141 |
|
Also available in: Unified diff