@ControllerAdvice
public class S3MockExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
ResponseEntityExceptionHandler dealing with S3Exceptions; Serializes them to
response output as suitable ErrorResponses. See https://docs.aws.amazon
.com/AmazonS3/latest/API/ErrorResponses.html.| Constructor and Description |
|---|
S3MockExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<ErrorResponse> |
handleS3Exception(S3Exception s3Exception)
Handles the given
S3Exception. |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler public org.springframework.http.ResponseEntity<ErrorResponse> handleS3Exception(S3Exception s3Exception)
S3Exception.s3Exception - S3Exception to be handled.ResponseEntity representing the handled S3Exception.Copyright © 2019 Adobe. All rights reserved.