org.opentripplanner.util.ThrowableUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.util;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Created by abyrd on 2019-10-15
*/
public class ThrowableUtils {
public static String detailedString (Throwable throwable) {
StringWriter sw = new StringWriter();
sw.append(throwable.getMessage());
sw.append("\n");
throwable.printStackTrace(new PrintWriter(sw));
return sw.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy