Skip to content

Commit

Permalink
Remove guava dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Apr 9, 2016
1 parent 361e0ef commit 20a2750
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions desktop/src/org/destinationsol/desktop/SolDesktop.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.badlogic.gdx.Files;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.google.common.base.Throwables;
import org.destinationsol.GameOptions;
import org.destinationsol.SolApplication;
import org.destinationsol.SolFileReader;
Expand All @@ -14,6 +13,8 @@
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -58,7 +59,11 @@ public static void main(String[] argv) {
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, final Throwable ex) {
String exceptionString = Throwables.getStackTraceAsString(ex) + "Message: " + ex.getLocalizedMessage();
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);
ex.printStackTrace(printWriter);

String exceptionString = stringWriter.getBuffer().toString() + "Message: " + ex.getLocalizedMessage();
System.err.println("Uncaught exception: " + exceptionString);
Sys.alert("Uncaught Exception", exceptionString);
}
Expand Down

0 comments on commit 20a2750

Please sign in to comment.