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