io.infinicast.InfinicastExceptionHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinicast-client-jdk8 Show documentation
Show all versions of infinicast-client-jdk8 Show documentation
Infinicast SDK to communicate with the cloud.
package io.infinicast;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Created by ocean on 16.11.2016.
*/
public class InfinicastExceptionHelper {
public static String ExceptionToString(Exception x) {
StringWriter sw = new StringWriter();
x.printStackTrace(new PrintWriter(sw));
return sw.toString();
}
}