1 | if (e.getType() == ErrorEvent.SETUP_AUTO_COMMIT_TYPE) {↵ | | 1 | if (e.getType() == ErrorEvent.RESTORE_AUTO_COMMIT_TYPE) {↵
|
2 | String exMsg = "";↵ | | 2 | String exMsg = "";↵
|
3 | if (e.getException() != null) {↵ | | 3 | if (e.getException() != null) {↵
|
4 | exMsg = e.getException().getMessage();↵ | | 4 | exMsg = e.getException().getMessage();↵
|
5 | } ↵ | | 5 | }↵
|
6 | String message = ↵ | | 6 | String message = ↵
|
7 | getMessage("CopyProgressMonitor.setupAutoCommitException",↵ | | 7 | getMessage("CopyProgressMonitor.restoreAutoCommitException", ↵
|
8 | exMsg);↵ | | 8 | exMsg);↵
|
9 | String title = ↵ | | 9 | String title =↵
|
10 | getMessage("CopyProgressMonitor.setupAutoCommitExceptionTitle");↵ | | 10 | getMessage("CopyProgressMonitor.restoreAutoCommitExceptionTitle");↵
|
11 | int messageType = JOptionPane.ERROR_MESSAGE;↵ | | 11 | int messageType = JOptionPane.ERROR_MESSAGE;↵
|
12 | showMessageDialog(message, title, messageType);↵ | | 12 | showMessageDialog(message, title, messageType); ↵
|
13 | } | | 13 | }
|