Skip to content

Commit

Permalink
added general warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinoAvonEFSA committed Jan 11, 2018
1 parent 3613db9 commit 611aec2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/global_utils/Warnings.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import ack.DcfAckLog;
import ack.OpResError;
import app_config.PropertiesReader;
import exception_manager.ExceptionConverter;
import i18n_messages.Messages;
import soap.MySOAPException;
import soap.SOAPError;
Expand Down Expand Up @@ -36,16 +37,7 @@ public static int warnUser(Shell shell, String title, String message) {
}

public static String getStackTrace(Exception e) {

String message = e.getMessage();

StringBuilder sb = new StringBuilder();
for (StackTraceElement ste : e.getStackTrace()) {
sb.append("\n\tat ");
sb.append(ste);
}
String trace = message + " " + sb.toString();

String trace = ExceptionConverter.getStackTrace(e);
return trace;
}

Expand Down

0 comments on commit 611aec2

Please sign in to comment.