public static String generateCompilationStacktrace ( final DiagnosticCollector < JavaFileObject > diagnosticCollectors ) { final StringBuilder sb = new StringBuilder ( ) ; for ( final Diagnostic < ? extends JavaFileObject > diagnostic : diagnosticCollectors . getDiagnostics ( ) ) { sb . append ( diagnostic . getMessage ( null ) ) ; sb . append ( SeparatorConstants . SEMI_COLON_WHITE_SPACE ) ; } return sb . toString ( ) ; }
Generate a compilation stacktrace from the given parameter .