Skip to content

Commit 3e30c84

Browse files
authored
Merge pull request #5657 from RodriguezLaraRafa/develop
[bugfix] Add Catch exceptions in JavaClient
2 parents 30a762e + 5dd7b6b commit 3e30c84

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exist-core/src/main/java/org/exist/client/ClientFrame.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private void setupComponents() {
179179
try {
180180
client.reloadCollection();
181181
} catch (final XMLDBException e1) {
182-
//TODO report message
182+
showErrorMessage(e1.getMessage(), e1);
183183
}
184184
});
185185
toolbar.add(button);
@@ -545,7 +545,7 @@ protected void displayPrompt() {
545545
doc.insertString(commandStart++, Messages.getString("ClientFrame.92"), defaultAttrs); //$NON-NLS-1$
546546
shell.setCaretPosition(commandStart);
547547
} catch (final BadLocationException e) {
548-
//TODO show error
548+
showErrorMessage(e.getMessage(), e);
549549
}
550550
}
551551

@@ -561,7 +561,7 @@ protected void display(final String message) {
561561
shell.setCaretPosition(commandStart);
562562

563563
} catch (final BadLocationException e) {
564-
//TODO show error
564+
showErrorMessage(e.getMessage(), e);
565565
}
566566
}
567567

exist-core/src/main/java/org/exist/client/CollectionXConf.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
public class CollectionXConf
5353
{
5454

55-
public final static String TYPE_QNAME = "qname";
56-
public final static String TYPE_PATH = "path";
55+
public static final String TYPE_QNAME = "qname";
56+
public static final String TYPE_PATH = "path";
5757

5858
private InteractiveClient client = null; //the client
5959
private String path = null; //path of the collection.xconf file

0 commit comments

Comments
 (0)