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

cn.tangjiabao.halodb.utils.exception.ExceptionUtils Maven / Gradle / Ivy

Go to download

Orm whitch The highest development efficiency and Efficiency is the fastest

There is a newer version: 0.17
Show newest version
package cn.tangjiabao.halodb.utils.exception;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionUtils {
	   public static String getStackTrace(final Throwable throwable) {
	        final StringWriter sw = new StringWriter();
	        final PrintWriter pw = new PrintWriter(sw, true);
	        throwable.printStackTrace(pw);
	        return sw.getBuffer().toString();
	    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy