1
|
/**
|
2
|
* Copyright (C) 2021 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.common.function;
|
10
|
|
11
|
/**
|
12
|
* @author a.mueller
|
13
|
* @since 07.06.2021
|
14
|
*/
|
15
|
public class TestSomething {
|
16
|
|
17
|
public static void main(String[] args){
|
18
|
try{
|
19
|
throw new RuntimeException();
|
20
|
}catch(Exception e){
|
21
|
for (StackTraceElement ste: e.getStackTrace()){
|
22
|
System.out.println(ste.getClassName());
|
23
|
System.out.println(ste.getMethodName());
|
24
|
System.out.println(e.getMessage());
|
25
|
System.out.println(e.getClass().getCanonicalName());
|
26
|
}
|
27
|
System.out.println(e.getStackTrace());
|
28
|
}
|
29
|
}
|
30
|
}
|