Class GlobalExceptionHandler
java.lang.Object
it.unicam.cs.ids2425.FilieraAgricola.exception.GlobalExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<MessageResponse> Gestisce le eccezioni di stato (es.
-
Constructor Details
-
GlobalExceptionHandler
public GlobalExceptionHandler()
-
-
Method Details
-
handleIllegalStateException
@ExceptionHandler(java.lang.IllegalStateException.class) public org.springframework.http.ResponseEntity<MessageResponse> handleIllegalStateException(IllegalStateException ex) Gestisce le eccezioni di stato (es. "giĆ sottomesso") e le trasforma in un 400 Bad Request leggibile.
-