Update CrashController.java

Add Log
This commit is contained in:
nubang 2024-11-28 14:49:29 +09:00 committed by GitHub
parent b1430053af
commit c8677501d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,17 @@ class CrashController {
@GetMapping("/oups")
public String triggerException() {
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
System.out.println("===============================================");
throw new RuntimeException(
"Expected: controller used to showcase what " + "happens when an exception is thrown");
}