Class ControllerConfiguration.IllegalStateExceptionHandler
-
- All Implemented Interfaces:
-
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@ControllerAdvice() public final class ControllerConfiguration.IllegalStateExceptionHandler extends ResponseEntityExceptionHandlerResponseEntityExceptionHandler dealing with IllegalStateExceptions. Serializes them to response output as a 500 Internal Server Error ErrorResponse. API Reference API Reference
-
-
Field Summary
Fields Modifier and Type Field Description private MessageSourcemessageSource
-
Constructor Summary
Constructors Constructor Description ControllerConfiguration.IllegalStateExceptionHandler()
-
Method Summary
Modifier and Type Method Description final ResponseEntity<ErrorResponse>handleS3Exception(IllegalStateException exception)Handles the given IllegalStateException. -
-
Method Detail
-
handleS3Exception
@ExceptionHandler(value = {IllegalStateException.class}) final ResponseEntity<ErrorResponse> handleS3Exception(IllegalStateException exception)Handles the given IllegalStateException.
- Parameters:
exception- IllegalStateException to be handled.- Returns:
A ResponseEntity representing the handled IllegalStateException.
-
-
-
-