by Anonymous » 05 Apr 2025, 19:54
Warum Intellij -Idee beim Ausführen des folgenden Codes Fehler zeigt? < /p>
Code: Select all
public static void wrapWithCause() {
System.out.println("wrap with cause:");
try {
doWork();
} catch (Exception e) {
RuntimeException wrapper = new RuntimeException("Wrap exception", e);
log.error("Exception caught", wrapper);
}
System.out.println("I am still running"); //
Warum Intellij -Idee beim Ausführen des folgenden Codes Fehler zeigt? < /p>
[code] public static void wrapWithCause() {
System.out.println("wrap with cause:");
try {
doWork();
} catch (Exception e) {
RuntimeException wrapper = new RuntimeException("Wrap exception", e);
log.error("Exception caught", wrapper);
}
System.out.println("I am still running"); //