/**
* prints a stacktrace to a string
* @param e the exception, those stacktrace to be printed
* @return stacktrace
*/
public static String StackTraceToString(Exception e)
{
String NEW_LINE = System.getProperty("line.separator");
StackTraceElement[] stack = e.getStackTrace();
String trace = "";
for (StackTraceElement line : stack)
{
trace += line.toString() + NEW_LINE;
}
return trace;
}
Kategorien
-
Neueste Beiträge
- Links
- [ABAP] Lesen des Inhalts von CDS-Entitäten
- Pflanzliche Ernährung kann das Alzheimer-Risiko senken
- Wissensmanagement
- [CSS] Farbschemen
- [CSS] Frameworks
- [ABAP] SPRO-Customizing – Anzeigen und Ändern eines Projektplans
- Software-Alternativen
- [SVG] SVG-Viewer und Editoren
- [SVG] SVG-Icon-Bibliotheken