All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.util.ThrowableUtils Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy