Created Exception Utils

This commit is contained in:
Konloch 2024-10-02 13:51:52 -06:00
parent e1763632ff
commit f20cdee888

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -0,0 +1,20 @@
package the.bytecode.club.bytecodeviewer.util;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* @author Konloch
* @since 10/2/2024
*/
public class ExceptionUtils
{
public static String exceptionToString(Throwable e)
{
StringWriter exceptionWriter = new StringWriter();
e.printStackTrace(new PrintWriter(exceptionWriter));
e.printStackTrace();
return exceptionWriter.toString();
}
}