Remove debugging statement
All checks were successful
Quality Check / Tests (pull_request) Successful in 1m8s
Quality Check / Checkstyle Main (pull_request) Successful in 38s
Build PR / Build and analyze (pull_request) Successful in 1m50s
gitea-sonarqube-bot OK

This commit is contained in:
Phan Huy Tran 2024-10-23 12:14:23 +02:00
parent 5ec316473b
commit a3c48852db

@ -30,7 +30,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)
public ResponseEntity<ErrorDetails> handleAllOtherExceptions(Exception ex, WebRequest request) { public ResponseEntity<ErrorDetails> handleAllOtherExceptions(Exception ex, WebRequest request) {
ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getClass() + " " + ex.getMessage(), request.getDescription(false)); ErrorDetails errorDetails = new ErrorDetails(new Date(), ex.getClass() + " " + ex.getMessage(), request.getDescription(false));
System.out.println(ex);
return new ResponseEntity<>(errorDetails, HttpStatus.INTERNAL_SERVER_ERROR); return new ResponseEntity<>(errorDetails, HttpStatus.INTERNAL_SERVER_ERROR);
} }