- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
public void aMethod() {
try {
int t = 0;
t = t / t;
} catch (Exception e) {
System.out.println("aMethod");
for (StackTraceElement element : e.getStackTrace()) {
System.out.println("aMethod" + element.getClassName() + " " + element.getMethodName() + " " + element.getLineNumber() );
}
}
...//дополнительная "логика"
}