Issue#27 removed getCause management

This commit is contained in:
Didier Clermonté 2016-06-22 22:11:06 +02:00
parent 3390335269
commit f3bcf8e9f7
3 changed files with 10 additions and 22 deletions

View File

@ -177,10 +177,6 @@ public class SibaCLI
{
System.err.println("SibaException = " + exception.getMessage());
logger.error(exception.getMessage(), exception);
if (exception.getCause() != null)
{
logger.error("SibaException chainée = " + exception.getCause().getMessage());
}
help();
}
}

View File

@ -193,10 +193,6 @@ public class BackupPanel extends JPanel
catch (SibaException exception)
{
String dataMissing = exception.getMessage();
if (exception.getCause() != null)
{
dataMissing = dataMissing.concat(exception.getCause().getMessage());
}
String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text");
JOptionPane.showMessageDialog(BackupPanel.this, dataMissing, titleWarning,

View File

@ -315,10 +315,6 @@ public class SibaGUI
{
logger.error("SibaException ", exception);
String dataMissing = exception.getMessage();
if (exception.getCause() != null)
{
logger.info("SibaException chainée = " + exception.getCause().getMessage());
}
String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text");
JOptionPane.showMessageDialog(null, dataMissing, titleWarning, JOptionPane.INFORMATION_MESSAGE);
}