String (Throwable throwable) { StringBuilder sb = new StringBuilder(); for (StackTraceElement traceElement : throwable.getStackTrace()) { sb.append(traceElement.getClassName()).append(traceElement.getMethodName()); } return sb.toString(); }